mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 05:21:00 +01:00
33343: Variant anonymous function synax with arguments.
Don't expand arguments as if in command position. Test.
This commit is contained in:
parent
7eb949a6bb
commit
7666ceb2bc
2 changed files with 30 additions and 7 deletions
|
|
@ -272,6 +272,12 @@
|
|||
>ignorebraces is off
|
||||
>ignorebraces is still on here
|
||||
|
||||
# lsfoo should not be expanded as an anonymous function argument
|
||||
alias lsfoo='This is not ls.'
|
||||
() (echo anon func; echo "$@") lsfoo
|
||||
0:Anonmous function with arguments in a form nobody sane would ever use but unfortunately we have to support anyway
|
||||
>anon func
|
||||
>lsfoo
|
||||
|
||||
%clean
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue