about summary refs log tree commit diff
path: root/Test/C04funcdef.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-08-03 18:45:17 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-08-03 18:45:17 +0000
commitd48faef8cdff3c7c63c0a9164443e3d337aa1ec1 (patch)
treee9096e7fc93bbfdcc8fbc751c6117976ad2c0189 /Test/C04funcdef.ztst
parent771b059a526effbddb895fb041e30b3a5e038b48 (diff)
downloadzsh-d48faef8cdff3c7c63c0a9164443e3d337aa1ec1.tar.gz
zsh-d48faef8cdff3c7c63c0a9164443e3d337aa1ec1.tar.xz
zsh-d48faef8cdff3c7c63c0a9164443e3d337aa1ec1.zip
29633: more care with anonymous and other functions
Diffstat (limited to 'Test/C04funcdef.ztst')
-rw-r--r--Test/C04funcdef.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst
index 742d2d0a7..90f01e397 100644
--- a/Test/C04funcdef.ztst
+++ b/Test/C04funcdef.ztst
@@ -245,6 +245,12 @@
 >empty
 >here
 
+  if true; then f() { echo foo1; } else f() { echo bar1; } fi; f
+  if false; then f() { echo foo2; } else f() { echo bar2; } fi; f
+0:Compatibility with other shells when not anonymous functions
+>foo1
+>bar2
+
 %clean
 
  rm -f file.in file.out