Skip to content

Commit 8fe6177

Browse files
committed
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9fee24c commit 8fe6177

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

t/t3701-add-interactive.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ EOF
8282
'
8383

8484
test_expect_success PERL 'setup fake editor' '
85-
cat >fake_editor.sh <<EOF
86-
EOF
85+
>fake_editor.sh &&
8786
chmod a+x fake_editor.sh &&
88-
test_set_editor "$(pwd)/fake_editor.sh" &&
87+
test_set_editor "$(pwd)/fake_editor.sh"
8988
'
9089

9190
test_expect_success PERL 'dummy edit works' '

0 commit comments

Comments
 (0)