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:
parent
771b059a52
commit
d48faef8cd
4 changed files with 30 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue