From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21068 invoked by alias); 21 Aug 2015 16:03:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36268 Received: (qmail 22701 invoked from network); 21 Aug 2015 16:03:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f5-f794b6d000001495-b2-55d74bcd104b Date: Fri, 21 Aug 2015 17:03:23 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Anonymous function syntax and "sh" emulation Message-id: <20150821170323.733ad3e9@pwslap01u.europe.root.pri> In-reply-to: <150821082923.ZM11413@torch.brasslantern.com> References: <150820211638.ZM29649@torch.brasslantern.com> <20150821155249.3f773977@pwslap01u.europe.root.pri> <150821082923.ZM11413@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t/xy7pnva+HGlx6ZWlxsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4Mv7+mc1eMI+1Yv45vQbGZSxdjBwcEgImEreeq3UxcgKZYhIX 7q1n62Lk4hASWMoo0bh4NhOEM4NJYs/E5VCZbYwSd7dsZANpYRFQlXgx6TIriM0mYCgxddNs RhBbREBc4uza8ywgtrCApcTJr8/AangF7CW6T/1mB7E5Bawk+t6cZIUYOp9RYk97B9hQfgF9 iat/PzFB3GQvMfPKGUaIZkGJH5PvgQ1lFtCS2LytiRXClpfYvOYtM4gtJKAucePubvYJjEKz kLTMQtIyC0nLAkbmVYyiqaXJBcVJ6blGesWJucWleel6yfm5mxghQft1B+PSY1aHGAU4GJV4 eGdEXgsVYk0sK67MPcQowcGsJML72fJ6qBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHembvehwgJ pCeWpGanphakFsFkmTg4pRoYlSebRm6zLd51f/n7xdK3Gz5rNK3rFLhf4JJhdihV7d+6pWZr 2210pJibj8/P/XluszWvRolAm+4h7mtSfFP++8kcl+rjvybzv9wqKlO6aefv7T0XJ7p2dEZa 5HMo3dn2/pgVo0x0jtJihb4FmxkLDe/PkKg8dV80zvv3hIOPmjybTZjUFX8osRRnJBpqMRcV JwIAuYN6VVYCAAA= Test. diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 74f8815..4721e09 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -295,6 +295,19 @@ >} >This is the correct output. + unfunction command_not_found_handler # amusing but unhelpful + alias first='firstfn1 firstfn2' second='secondfn1 secondfn2' + function first second { print This is function $0; } + first + second + firstfn1 + secondfn1 +127:No alias expansion after "function" keyword +>This is function first +>This is function second +?(eval):6: command not found: firstfn1 +?(eval):7: command not found: secondfn1 + %clean rm -f file.in file.out