From 321471891e259c7b406f3cfaf1c076b28ae16a5f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 7 Oct 2012 17:50:18 +0000 Subject: 30718: emulate command evaluations should apply sticky emulation to autoloads, too --- Test/C04funcdef.ztst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Test') diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 90f01e397..706aa28c2 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -251,6 +251,23 @@ >foo1 >bar2 + ( + setopt ignorebraces + fpath=(.) + print "{ echo OK }\n[[ -o ignorebraces ]] || print 'ignorebraces is off'" \ + >emufunctest + (autoload -z emufunctest; emufunctest) 2>&1 + emulate zsh -c 'autoload -Uz emufunctest' + emufunctest + [[ -o ignorebraces ]] && print 'ignorebraces is still on here' + ) +0:sticky emulation applies to autoloads and autoloaded function execution +>emufunctest:3: parse error near `\n' +>OK +>ignorebraces is off +>ignorebraces is still on here + + %clean rm -f file.in file.out -- cgit 1.4.1