From 641a764b8203de5e5f5c9f1d6d5b0a48c26ca9e7 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 8 May 2017 17:19:22 +0100 Subject: 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. --- Test/A04redirect.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test') 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 + } 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 -- cgit 1.4.1