aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/test1.in5
-rw-r--r--tests/test1.out1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/test1.in b/tests/test1.in
index a66bf598..b9db902a 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 d44ae37c..fb5ea8c8 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