about summary refs log tree commit diff
path: root/Test/C04funcdef.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-10-03 14:17:33 +0100
committerPeter Stephenson <pws@zsh.org>2014-10-03 14:17:33 +0100
commit7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c (patch)
tree942d9eef59a30cfc06aaa07b668a5ea00aaedfbf /Test/C04funcdef.ztst
parent7eb949a6bb2faa60788525ad7c5a9bbbffabd347 (diff)
downloadzsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar.gz
zsh-7666ceb2bcd3e38d4b2f9f7202c4a9e0021b8e8c.tar.xz
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.ztst6
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