1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

29633: more care with anonymous and other functions

This commit is contained in:
Peter Stephenson 2011-08-03 18:45:17 +00:00
parent 771b059a52
commit d48faef8cd
4 changed files with 30 additions and 5 deletions

View file

@ -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