summaryrefslogtreecommitdiff
path: root/Test/A04redirect.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-05-08 17:19:22 +0100
committerPeter Stephenson <pws@zsh.org>2017-05-08 17:19:22 +0100
commit641a764b8203de5e5f5c9f1d6d5b0a48c26ca9e7 (patch)
tree335e6afa61b9feee5bbb392e3371f269805e8ec2 /Test/A04redirect.ztst
parentf25d01a97c61fdac5d6e0a6a8fb63b5b2b5f3393 (diff)
downloadzsh-641a764b8203de5e5f5c9f1d6d5b0a48c26ca9e7.tar.gz
zsh-641a764b8203de5e5f5c9f1d6d5b0a48c26ca9e7.zip
users/22688: Allow mixing redirs and arguments after anon functions.
These are parsed differently from the case of normal functions which can't take normal arguments at that point.
Diffstat (limited to 'Test/A04redirect.ztst')
-rw-r--r--Test/A04redirect.ztst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index a5de552c1..2671080c2 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -475,6 +475,18 @@
>Nothing output yet
>I just read any old rubbish
+ print you cannot be serious >input1
+ () {
+ local var
+ read var
+ print $1 $var $2
+ } <input1 Shirley >output1 dude
+ print Nothing output yet
+ cat output1
+0:anonymous function redirections mixed with argument
+>Nothing output yet
+>Shirley you cannot be serious dude
+
redirfn() {
local var
read var