Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: field splitting with empty fields
- X-seq: zsh-users 12148
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: field splitting with empty fields
- Date: Tue, 30 Oct 2007 12:30:25 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <200710301204.l9UC4snN010037@xxxxxxxxxxxxxx>
- Mail-followup-to: Peter Stephenson <pws@xxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071029235835.GA29356@xxxxxxxxxxx> <071029171355.ZM28438@xxxxxxxxxxxxxxxxxxxxxx> <20071030042048.GA32506@xxxxxxxxxxx> <20071030104459.562a77b1@news01> <20071030115827.GC5398@xxxxxxxxxxxxxxx> <200710301204.l9UC4snN010037@xxxxxxxxxxxxxx>
On Tue, Oct 30, 2007 at 12:04:53PM +0000, Peter Stephenson wrote:
[...]
> > I've myself already relied on it before, though many other
> > times, it's true I have wished it was not removing empty items.
>
> The interesting question is: are there times when you need the double
> quotes (for some other reason), but *still* don't want empty elements
> removed? That would explain the kludge.
[...]
I can't tell, probably not.
Best would probably be to do a quick search for (f) and (s:...:)
in /usr/share/zsh to see if any of them rely on that.
I can see for instance:
4.3.4/functions/Completion/Unix/_java_class:for i in "${(s.:.)classpath}"; do
But in that case, it probably is more correct (if CLASSPATH is
meant to behave like PATH) to not strip the empty elements.
I agree with you that not removing the empty elements at that
stage makes more sense, given that it can be done later on by
not using @+quoting...
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author