Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: anonymous functions (no documentation yet)
- X-seq: zsh-workers 25250
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: anonymous functions (no documentation yet)
- Date: Thu, 26 Jun 2008 16:42:18 +0100
- In-reply-to: <20080626153203.GA10599@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <18441.1214488302@xxxxxxx> <9646.1214491732@thecus> <200806261506.m5QF6aCd019139@xxxxxxxxxxxxxx> <20080626153203.GA10599@xxxxxxxxxxxxxxx>
Stephane Chazelas wrote:
> On Thu, Jun 26, 2008 at 04:06:36PM +0100, Peter Stephenson wrote:
> > > Out of interest, how does it affect:
> > > ""() { ... }
> >
> > That also turns into an empty argument list that is ignored. I would
> > have to check why since my first guess was it would produce an invalid
> > empty function name.
>
> Well,
>
> ""() echo test
> ''
>
> Does echo "test".
You're right; I didn't try it out. I'd forgotten functions (unlike
variables) could be called absolutely any string of characters.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author