From: Ramkumar Ramachandra Date: Fri, 21 Sep 2012 20:52:46 GMT Subject: [PATCH] t/test-lib.sh: do not trust $SHELL Message-ID: <1348260766-25287-1-git-send-email-artagnon@gmail.com> In-Reply-To: <505CCA55.6030609@gmail.com> Replace $SHELL with an explicit `/bin/sh`, as some shells do not support all the features used in the script. For example, ZSH does not respect IFS, which is used in line 478. Signed-off-by: Ramkumar Ramachandra --- t/test-lib.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index f8e3733..5710488 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -24,7 +24,7 @@ done,*) *' --tee '*|*' --va'*) mkdir -p test-results BASE=test-results/$(basename "$0" .sh) - (GIT_TEST_TEE_STARTED=done ${SHELL-sh} "$0" "$@" 2>&1; + (GIT_TEST_TEE_STARTED=done /bin/sh "$0" "$@" 2>&1; echo $? > $BASE.exit) | tee $BASE.out test "$(cat $BASE.exit)" = 0 exit -- 1.7.8.1.362.g5d6df.dirty