diff options
| author | Peter Stephenson <pws@zsh.org> | 2014-10-03 14:17:33 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2014-10-03 14:17:33 +0100 |
| commit | 7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c (patch) | |
| tree | 942d9eef59a30cfc06aaa07b668a5ea00aaedfbf /Test/C04funcdef.ztst | |
| parent | Fix some typos in the documentation (diff) | |
| download | zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar.gz zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar.bz2 zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar.lz zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar.xz zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar.zst zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.zip | |
33343: Variant anonymous function synax with arguments.
Don't expand arguments as if in command position. Test.
Diffstat (limited to 'Test/C04funcdef.ztst')
| -rw-r--r-- | Test/C04funcdef.ztst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index a2660315f..193757090 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -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 |
