summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb8a9bd)
raw | patch | inline | side by side (parent: cb8a9bd)
author | Brandon Casey <drafnel@gmail.com> | |
Mon, 22 Jun 2009 17:32:52 +0000 (12:32 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 23 Jun 2009 23:41:27 +0000 (16:41 -0700) |
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>
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>
t/t9001-send-email.sh | patch | blob | history |
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index fb7d9f3e4a9e111e22299a29ca5af3a42101fbdc..fb606a9f05bd6964c588f1ba9e5422e757d12387 100755 (executable)
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
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>" \