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>
Brandon Casey committed
Jun 22, 2009 at 12:32 UTC
977e289e0d73ad66883425efbd37eadb7d91fd61
1 file changed
+4
-1
t/t9001-send-email.sh
+4
-1
@@ -152,7 +152,10 @@ test_expect_success 'cccmd works' '
152
clean_fake_sendmail &&
153
cp $patches cccmd.patch &&
154
echo cccmd--cccmd@example.com >>cccmd.patch &&
155
- echo sed -n s/^cccmd--//p \"\$1\" > cccmd-sed &&
155
+ {
156
+ echo "#!$SHELL_PATH"
157
+ echo sed -n -e s/^cccmd--//p \"\$1\"
158
+ } > cccmd-sed &&
159
chmod +x cccmd-sed &&
160
git send-email \
161
--from="Example <nobody@example.com>" \