summaryrefslogtreecommitdiff
path: root/t/t3701-add-interactive.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-05 18:28:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-05 18:28:52 (GMT)
commit8fe6177ac640ca36814ad3394d4e86b4ce8e29e3 (patch)
tree9f602dacf6aea1718f2d325f25300a4ecb518300 /t/t3701-add-interactive.sh
parent9fee24cac87078ae48b5a74ecafaca751f5edfd6 (diff)
downloadgit-8fe6177ac640ca36814ad3394d4e86b4ce8e29e3.zip
git-8fe6177ac640ca36814ad3394d4e86b4ce8e29e3.tar.gz
git-8fe6177ac640ca36814ad3394d4e86b4ce8e29e3.tar.bz2
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>
Diffstat (limited to 't/t3701-add-interactive.sh')
-rwxr-xr-xt/t3701-add-interactive.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh
index d6327e7..fdcbe2e 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 <<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' '