summaryrefslogtreecommitdiff
path: root/trip.rc
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2017-04-17 21:59:45 +0100
committerToby Goodwin <toby@paccrat.org>2017-04-17 22:01:02 +0100
commit52b096b7ac9ffa8150fe0450ba76dbc3332a214e (patch)
treefb1e531b099064b674ab026f708278fe68394b1b /trip.rc
parenta4eddefec148f98c790e390d80fbd69811da48c7 (diff)
add some tests for unquoted equals
Diffstat (limited to 'trip.rc')
-rw-r--r--trip.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/trip.rc b/trip.rc
index c811347..5ffba5c 100644
--- a/trip.rc
+++ b/trip.rc
@@ -597,3 +597,9 @@ x=$tmpdir/qux*/foo
~ $x $tmpdir/qux/foo || { rm -rf $tmpdir/qux; fail broken symlink globbing }
rm -rf $tmpdir
+
+# test support for unquoted =
+submatch 'echo foo = bar' 'foo = bar' 'unquoted equals 2'
+submatch 'echo foo=bar' 'foo=bar' 'unquoted equals 2'
+submatch 'echo foo=' 'foo=' 'unquoted equals 3'
+submatch 'echo =bar; whatis -v echo' 'echo=bar' 'unquoted equals 4'