aboutsummaryrefslogtreecommitdiff
path: root/tests/quote
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-09 10:20:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-09 10:20:52 +0200
commite3b6dc455ab5c98606e38983bd19426ae346f469 (patch)
tree62f145eac81c7c6f955ca9e63df17aa07c392c11 /tests/quote
parentccca13f8eadef31f2df873cb505ebca98501c45a (diff)
Reimplement double quote lexing to avoid "implied quote" trick
Diffstat (limited to 'tests/quote')
-rw-r--r--tests/quote/buildfile4
-rw-r--r--tests/quote/test.out3
-rwxr-xr-xtests/quote/test.sh2
3 files changed, 8 insertions, 1 deletions
diff --git a/tests/quote/buildfile b/tests/quote/buildfile
index 931bc36..6dd22b4 100644
--- a/tests/quote/buildfile
+++ b/tests/quote/buildfile
@@ -15,4 +15,8 @@ print "[ $bar ]"
print "[ $foo $bar ]"
print "[ $foo/$bar ]"
+print $foo'bar'
+print $foo"$bar"
+print "$foo"bar
+
./:
diff --git a/tests/quote/test.out b/tests/quote/test.out
index 802f28f..216b1c8 100644
--- a/tests/quote/test.out
+++ b/tests/quote/test.out
@@ -9,3 +9,6 @@ fo o bar
[ bar ]
[ fo o bar ]
[ fo o/ bar ]
+fo obar
+fo o bar
+fo obar
diff --git a/tests/quote/test.sh b/tests/quote/test.sh
index 145ea6b..b898b3c 100755
--- a/tests/quote/test.sh
+++ b/tests/quote/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff test.out -
+valgrind -q b -q | diff -u test.out -