mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Add a test for issue #1987
This commit is contained in:
parent
318daaffb2
commit
9f8cec7f9e
2 changed files with 6 additions and 0 deletions
|
@ -150,6 +150,11 @@ echo "/bin/echo pipe 12 <&12 12<&-" | source 12<&0
|
||||||
echo "Checking for infinite loops in no-execute"
|
echo "Checking for infinite loops in no-execute"
|
||||||
echo "while true; end" | ../fish --no-execute
|
echo "while true; end" | ../fish --no-execute
|
||||||
|
|
||||||
|
# Comments allowed in between lines (#1987)
|
||||||
|
echo before comment \
|
||||||
|
# comment
|
||||||
|
after comment
|
||||||
|
|
||||||
function always_fails
|
function always_fails
|
||||||
if true
|
if true
|
||||||
return 1
|
return 1
|
||||||
|
|
|
@ -51,4 +51,5 @@ pipe 10
|
||||||
pipe 11
|
pipe 11
|
||||||
pipe 12
|
pipe 12
|
||||||
Checking for infinite loops in no-execute
|
Checking for infinite loops in no-execute
|
||||||
|
before comment after comment
|
||||||
1
|
1
|
||||||
|
|
Loading…
Reference in a new issue