From: Brandon Casey Date: Mon, 22 Jun 2009 17:32:52 +0000 (-0500) Subject: t/t9001-send-email.sh: ensure generated script is executed with $SHELL_PATH X-Git-Tag: v1.6.4-rc0~37^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=977e289e0d73ad66883425efbd37eadb7d91fd61;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index fb7d9f3e4..fb606a9f0 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 " \