{"thread":{"id":"19901","subject":"[PATCH] t/t9001-send-email.sh: ensure generated script is executed with $SHELL_PATH","startedAt":"2009-06-22T17:32:52Z","lastAt":"2009-06-22T17:32:52Z","messageCount":1,"participants":["Brandon Casey"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"116777","messageId":"0aBbhbpQqrYrkmoZ4FLobIiu7r9gRqhySR3zL0Ll2nRDg9pCmQ_amb4Z4AZXxbULu3EPW-03YA8@cipher.nrlssc.navy.mil","threadId":"19901","inReplyTo":null,"subject":"[PATCH] t/t9001-send-email.sh: ensure generated script is executed with $SHELL_PATH","fromName":"Brandon Casey","fromEmail":"casey@nrlssc.navy.mil","sentAt":"2009-06-22T17:32:52Z","receivedAt":"2009-06-22T17:32:52Z","isPatch":true,"sender":{"key":"drafnel@gmail.com","avatar":"https://avatars.githubusercontent.com/u/921167?v=4"},"body":"From: Brandon Casey <drafnel@gmail.com>\n\nIf the shell is not specified using the '#!' notation, then the OS will\nuse '/bin/sh' to execute the script which may not produce the desired\nresults.  In particular, /bin/sh on Solaris interprets '^' specially which\nhas an affect on the sed command that this patch touches.\n\nSigned-off-by: Brandon Casey <drafnel@gmail.com>\n---\n t/t9001-send-email.sh |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh\nindex fb7d9f3..7b4cf55 100755\n--- a/t/t9001-send-email.sh\n+++ b/t/t9001-send-email.sh\n@@ -152,7 +152,9 @@ test_expect_success 'cccmd works' '\n \tclean_fake_sendmail &&\n \tcp $patches cccmd.patch &&\n \techo cccmd--cccmd@example.com >>cccmd.patch &&\n-\techo sed -n s/^cccmd--//p \\\"\\$1\\\" > cccmd-sed &&\n+\t{ echo \"#!$SHELL_PATH\"\n+\t  echo sed -n s/^cccmd--//p \\\"\\$1\\\"\n+\t} > cccmd-sed &&\n \tchmod +x cccmd-sed &&\n \tgit send-email \\\n \t\t--from=\"Example <nobody@example.com>\" \\\n-- \n1.6.3.1.24.g152f4\n"}]}