Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: anonymous functions (no documentation yet)
- X-seq: zsh-workers 25247
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: anonymous functions (no documentation yet)
- Date: Thu, 26 Jun 2008 16:48:52 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Received:In-reply-to:From:References:To:Subject:Date:Message-ID; b=kSNnIBrGdZOpndloIWN7Zui0WGqjEhmEVBaBP2ycutYRjzmHZbSweyGvlBf5EjE2800uERLaRFKi2P72eVJhJB3mrTwkETuVL9HVU1R8fQ+TM3gkAOGnP6X9hIJD6PirozdGw2VAghI8GKNZGXXZEQfyDb35gr9D4C4WTin1ytE= ;
- In-reply-to: <18441.1214488302@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <18441.1214488302@xxxxxxx>
Peter wrote:
> Note this does not affect cases like
>
> $emptyvariable() { ... }
Out of interest, how does it affect:
""() { ... }
I partly ask because in the same way that
f g() { ... }
defines two functions,
f ''() { ... }
might have the effect of defining a function f and running it
immediately. And then you might write: f '' ''() { ... } and so on.
What effect does all this have on the positional parameters?
Given that this feature will be seen as similar to plain { ... },
people might find it confusing that redirections don't work. I know
that you already know this but in other shells, redirections on function
definitions are allowed and form part of the function.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author