mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
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>
This commit is contained in:
parent
cb8a9bd518
commit
977e289e0d
|
@ -152,7 +152,10 @@ test_expect_success 'cccmd works' '
|
||||||
clean_fake_sendmail &&
|
clean_fake_sendmail &&
|
||||||
cp $patches cccmd.patch &&
|
cp $patches cccmd.patch &&
|
||||||
echo cccmd--cccmd@example.com >>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 &&
|
chmod +x cccmd-sed &&
|
||||||
git send-email \
|
git send-email \
|
||||||
--from="Example <nobody@example.com>" \
|
--from="Example <nobody@example.com>" \
|
||||||
|
|
Loading…
Reference in a new issue