about summary refs log tree commit diff
path: root/Test/C04funcdef.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-10-07 17:50:18 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-10-07 17:50:18 +0000
commit321471891e259c7b406f3cfaf1c076b28ae16a5f (patch)
tree19d797c373bd51fe49437a7eb58933fbf1c81c09 /Test/C04funcdef.ztst
parentfff9a871e469bf689f22ff47561e0de960d5d49b (diff)
downloadzsh-321471891e259c7b406f3cfaf1c076b28ae16a5f.tar.gz
zsh-321471891e259c7b406f3cfaf1c076b28ae16a5f.tar.xz
zsh-321471891e259c7b406f3cfaf1c076b28ae16a5f.zip
30718: emulate command evaluations should apply sticky emulation
to autoloads, too
Diffstat (limited to 'Test/C04funcdef.ztst')
-rw-r--r--Test/C04funcdef.ztst17
1 files changed, 17 insertions, 0 deletions
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