Skip to content

Commit

Permalink
t3701: fix here document
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed May 5, 2011
1 parent 9fee24c commit 8fe6177
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions t/t3701-add-interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' '
Expand Down

0 comments on commit 8fe6177

Please sign in to comment.