diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-07-28 09:20:02 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-07-28 09:20:02 +0000 |
commit | 7d1480af54e95e5a2165e8bb69937a6b0a1dc50a (patch) | |
tree | 3ee740a9a191fe330237b384f09ecdfbc69a6c6b /Test/C04funcdef.ztst | |
parent | 6844a63daf3e372e99dc6722304dc9cc4fcc5095 (diff) | |
download | zsh-7d1480af54e95e5a2165e8bb69937a6b0a1dc50a.tar.gz zsh-7d1480af54e95e5a2165e8bb69937a6b0a1dc50a.tar.xz zsh-7d1480af54e95e5a2165e8bb69937a6b0a1dc50a.zip |
29626: arguments to anonymous functions shouldn't be parsed as command words
Diffstat (limited to 'Test/C04funcdef.ztst')
-rw-r--r-- | Test/C04funcdef.ztst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 0cc5e5a2f..742d2d0a7 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -1,3 +1,8 @@ +%prep + + mkdir funcdef.tmp + cd funcdef.tmp + %test fn1() { return 1; } @@ -228,6 +233,18 @@ > print Following bit >} + touch yes no + () { echo $1 } (y|z)* + (echo here) + () { echo $* } some (y|z)* + () { echo empty };(echo here) +0:Anonymous function arguments and command arguments +>yes +>here +>some yes +>empty +>here + %clean rm -f file.in file.out |