Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion function for bitkeeper?
- X-seq: zsh-workers 19252
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Completion function for bitkeeper?
- Date: Fri, 14 Nov 2003 18:52:31 +0100
- In-reply-to: <1031114171417.ZM2439@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <19332.1068826982@xxxxxxx> <1031114171417.ZM2439@xxxxxxxxxxxxxxxxxxxxxxx>
Bart wrote:
> } > Word splitting is vastly different in the two cases. It happens within
> } > the words of $action in the second case, but does not in the first case.
>
> That's a bit incoherent, let me try again.
That makes more sense now. Not sure I'd describe it as "vastly
different". It would only affect fairly unusual cases.
> In this second case it's a syntax error. I suppose it could be argued
> that the second case is unnecessary because it's only a shorthand for
> the first case with only one command in the braces.
Do you really think it's worth keeping both syntaxes though given that
it'd be nice to simplify _arguments syntax a little. I'd still be
inclined to deprecate the initial space form but I'm really not so
fussed.
> Also in the second case the eval has been factored out of the loop
> because we're always interested in the entire value of "$action" and
> it's fractionally more efficient to do the "eval" once only.
Though it is fairly rare for label loops to run more than once.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author