Browse Source

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>
maint
Junio C Hamano 14 years ago
parent
commit
8fe6177ac6
  1. 5
      t/t3701-add-interactive.sh

5
t/t3701-add-interactive.sh

@ -82,10 +82,9 @@ EOF @@ -82,10 +82,9 @@ EOF
'

test_expect_success PERL 'setup fake editor' '
cat >fake_editor.sh <<EOF
EOF
>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' '

Loading…
Cancel
Save