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 <draenog@pld-linux.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
May 5, 2011 at 11:28 UTC
8fe6177ac640ca36814ad3394d4e86b4ce8e29e3
1 file changed
+2
-3
t/t3701-add-interactive.sh
+2
-3
@@ -82,10 +82,9 @@ EOF
82
'
83
84
test_expect_success PERL 'setup fake editor' '
85
- cat >fake_editor.sh <<EOF
86
- EOF
85
+ >fake_editor.sh &&
86
chmod a+x fake_editor.sh &&
88
- test_set_editor "$(pwd)/fake_editor.sh" &&
87
+ test_set_editor "$(pwd)/fake_editor.sh"
88
'
89
90
test_expect_success PERL 'dummy edit works' '