summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2009-06-22 17:32:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-23 23:41:27 (GMT)
commit977e289e0d73ad66883425efbd37eadb7d91fd61 (patch)
treee240c4ae8d814b40554436266a1475ff5a62cdaf /t/t9001-send-email.sh
parentcb8a9bd518002dd4fb693df6230b4976bafc15e0 (diff)
downloadgit-977e289e0d73ad66883425efbd37eadb7d91fd61.zip
git-977e289e0d73ad66883425efbd37eadb7d91fd61.tar.gz
git-977e289e0d73ad66883425efbd37eadb7d91fd61.tar.bz2
t/t9001-send-email.sh: ensure generated script is executed with $SHELL_PATH
If the shell is not specified using the '#!' notation, then the OS will use '/bin/sh' to execute the script which may not produce the desired results. In particular, /bin/sh on Solaris interprets '^' specially which has an effect on the sed command that this patch touches. Signed-off-by: Brandon Casey <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index fb7d9f3..fb606a9 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -152,7 +152,10 @@ test_expect_success 'cccmd works' '
clean_fake_sendmail &&
cp $patches cccmd.patch &&
echo cccmd--cccmd@example.com >>cccmd.patch &&
- echo sed -n s/^cccmd--//p \"\$1\" > cccmd-sed &&
+ {
+ echo "#!$SHELL_PATH"
+ echo sed -n -e s/^cccmd--//p \"\$1\"
+ } > cccmd-sed &&
chmod +x cccmd-sed &&
git send-email \
--from="Example <nobody@example.com>" \