diff --git a/tests/test1.in b/tests/test1.in index a66bf598f..b9db902ae 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -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 diff --git a/tests/test1.out b/tests/test1.out index d44ae37c6..fb5ea8c8a 100644 --- a/tests/test1.out +++ b/tests/test1.out @@ -51,4 +51,5 @@ pipe 10 pipe 11 pipe 12 Checking for infinite loops in no-execute +before comment after comment 1