From: Junio C Hamano Date: Thu, 5 May 2011 18:28:52 +0000 (-0700) Subject: t3701: fix here document X-Git-Tag: v1.7.5.2~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8fe6177ac640ca36814ad3394d4e86b4ce8e29e3;p=git.git t3701: fix here document A broken here-document was not caught because end of file is taken by an implicit end of the here document (POSIX does not seem to say it is an error to lack the delimiter), and everything in the test just turned into a single "cat into a file". Noticed-by: Kacper Kornet Signed-off-by: Junio C Hamano --- diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh index d6327e7c7..fdcbe2e73 100755 --- a/t/t3701-add-interactive.sh +++ b/t/t3701-add-interactive.sh @@ -82,10 +82,9 @@ EOF ' test_expect_success PERL 'setup fake editor' ' - cat >fake_editor.sh <fake_editor.sh && chmod a+x fake_editor.sh && - test_set_editor "$(pwd)/fake_editor.sh" && + test_set_editor "$(pwd)/fake_editor.sh" ' test_expect_success PERL 'dummy edit works' '