summaryrefslogtreecommitdiff
path: root/trip.rc
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2018-03-19 20:55:56 +0000
committerToby Goodwin <toby@paccrat.org>2018-03-19 20:55:56 +0000
commit7a643120366f1ea24eac5ccb759d4df616e7789b (patch)
tree17faf7ba3be5e185b8262cfcbafbe23a9f64260a /trip.rc
parent2dd0aa249c9bac4e5c616d1f386dc4271fdbab46 (diff)
implement desugaring version (again, lost due to git problem)
Diffstat (limited to 'trip.rc')
-rw-r--r--trip.rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/trip.rc b/trip.rc
index cc4ca0d..c89d89a 100644
--- a/trip.rc
+++ b/trip.rc
@@ -706,7 +706,8 @@ if (~ $status 0) {
# exercise "if not"
submatch 'if (false) echo foo; if not echo bar' 'bar' 'if not 1'
-submatch 'if (false) echo foo; echo qux; if not echo bar' 'rc: `if not'' must follow `if''' 'if not 2'
+submatch 'if (false) echo -n foo; if not echo -n bar; echo qux' 'barqux' 'if not 2'
+submatch 'if (false) echo foo; echo qux; if not echo bar' 'rc: `if not'' must follow `if''' 'if not 3'
# exercise flag builtin
submatch 'flag' 'rc: not enough arguments to flag' 'flag no args'