git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Start all test scripts with /bin/sh.

From
Jason Riedy <ejr@eecs.berkeley.edu>
Date
Jan 16, 2007, 01:31 UTC
Message-ID
<17448.1168911109@lotus.CS.Berkeley.EDU>

My bash refused to run the two scripts missing a #!, and it's better to use the same line for all the scripts.

Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
---
 t/t9102-git-svn-deep-rmdir.sh     |    1 +
 t/t9103-git-svn-graft-branches.sh |    1 +
 t/t9200-git-cvsexportcommit.sh    |    2 +-
 3 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/t/t9102-git-svn-deep-rmdir.sh b/t/t9102-git-svn-deep-rmdir.sh
index 572aaed..4e08083 100755
--- a/t/t9102-git-svn-deep-rmdir.sh
+++ b/t/t9102-git-svn-deep-rmdir.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
 test_description='git-svn rmdir'
 . ./lib-git-svn.sh
 
diff --git a/t/t9103-git-svn-graft-branches.sh b/t/t9103-git-svn-graft-branches.sh
index b5f7677..4e55778 100755
--- a/t/t9103-git-svn-graft-branches.sh
+++ b/t/t9103-git-svn-graft-branches.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
 test_description='git-svn graft-branches'
 . ./lib-git-svn.sh
 
diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
index 315119a..fd0a554 100755
--- a/t/t9200-git-cvsexportcommit.sh
+++ b/t/t9200-git-cvsexportcommit.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Copyright (c) Robin Rosenberg
 #
-- 
1.5.0.rc1.gf4b6c
Next: Junio C Hamano
Message 1 of 2 in “Start all test scripts with /bin/sh.”
  1. Start all test scripts with /bin/sh.Jason Riedy, Jan 16, 2007
  2. Junio C HamanoJan 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.