aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-05 23:47:04 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-05 23:47:04 -0700
commit9f8cec7f9e13f6a0cbf8e5e986c3dfbffac0be99 (patch)
treedb66f270b2d00c117daa82e231fcf7127ee515b7 /tests
parent318daaffb2d2551523a84acaaab57d79deb1cf22 (diff)
Add a test for issue #1987
Diffstat (limited to 'tests')
-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