From 7a643120366f1ea24eac5ccb759d4df616e7789b Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Mon, 19 Mar 2018 20:55:56 +0000 Subject: implement desugaring version (again, lost due to git problem) --- trip.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'trip.rc') 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' -- cgit v1.2.3