Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion function for bitkeeper?
- X-seq: zsh-users 6769
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Completion function for bitkeeper?
- Date: Fri, 14 Nov 2003 10:47:52 +0000
- In-reply-to: "Oliver Kiddle"'s message of "Fri, 14 Nov 2003 09:04:56 +0100." <29114.1068797096@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Oliver Kiddle wrote:
> For '*:desc:{_foo}' style actions, this is run:
>
> eval "$action[@]"
>
> and for '*:desc: _foo', this is run:
>
> eval "action=( $action )"
> "$action[@]"
>
> Can anyone tell me what practical difference that makes, if any?
>
> What might be a good plan is to deprecate the initial space feature and
> then, by only documenting expl under the {eval-string} form of action,
> it will be easier make things clear in the documentation.
I don't think we *need* both, and the brace is clearer --- more to the
point, use of the space is almost completely opaque, plus it's hard to
search for in the documentation. So switching the code makes sense.
However, we might need a pointer in case people wonder about it, and
since the documentation consists of one sentence it's not clear how much
difference it makes to change it there (except to say it's deprecated).
What about a single unquoted space to indicate no matches? Why do we
need the space at all? Surely if there's nothing there it indicates no
possible matches? It's all a bit Zen-like.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author