From e3182c18de8f84c2d7eb003f9c731ada5e9a591f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 8 Dec 2011 19:42:07 +0000 Subject: 29955++: IGNORE_CLOSE_BRACES option --- Test/E01options.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test/E01options.ztst') diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 1bbfdbda1..bcb34c352 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -256,6 +256,8 @@ ?next one should fail ?(eval):1: parse error near `end' +# ` emacs deconfusion + setopt cshjunkiequotes print this should cause an error >&2 eval "print 'line one @@ -271,6 +273,8 @@ ?(eval):1: unmatched ' ?this should not +# ' emacs deconfusion + nullcmd() { print '$NULLCMD run'; } readnullcmd() { print 'Running $READNULLCMD'; cat; } NULLCMD=nullcmd @@ -901,6 +905,8 @@ ?(eval):exec:6: ls: restricted ?(eval):unsetopt:7: can't change option: restricted +# ' emacs deconfusion + fn() { print =ls ={ls,} local foo='=ls' @@ -1081,3 +1087,12 @@ ?+(eval):4> fn ?+fn:0> print message ?+(eval):5> unsetopt xtrace + + setopt ignoreclosebraces + eval "icb_test() { echo this is OK; }" + icb_test + icb_args() { print $#; } + eval "icb_args { this, is, ok, too }" +0:IGNORE_CLOSE_BRACES option +>this is OK +>6 -- cgit 1.4.1