Add a test for issue #1987

This commit is contained in:
ridiculousfish 2015-04-05 23:47:04 -07:00
parent 318daaffb2
commit 9f8cec7f9e
2 changed files with 6 additions and 0 deletions

View file

@ -150,6 +150,11 @@ echo "/bin/echo pipe 12 <&12 12<&-" | source 12<&0
echo "Checking for infinite loops in no-execute"
echo "while true; end" | ../fish --no-execute
# Comments allowed in between lines (#1987)
echo before comment \
# comment
after comment
function always_fails
if true
return 1

View file

@ -51,4 +51,5 @@ pipe 10
pipe 11
pipe 12
Checking for infinite loops in no-execute
before comment after comment
1