Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Word splitting with zsh fix
- X-seq: zsh-workers 22244
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Roumen Petrov <bugtrack@xxxxxxxxxxxxxxxxx>
- Subject: Re: Word splitting with zsh fix
- Date: Sun, 12 Feb 2006 10:45:38 -0800
- Cc: Zsh Workers <zsh-workers@xxxxxxxxxx>
- In-reply-to: <43EF4EAA.6040507@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060211122226.GD13513@DervishD> <43EF4EAA.6040507@xxxxxxxxxxxxxxxxx>
On Sun, Feb 12, 2006 at 05:05:14PM +0200, Roumen Petrov wrote:
> I would like to know if option SH_WORD_SPLIT is set problem is solved
> too?
Can you explain what you mean? Because your test case works exactly
as it should in zsh:
% ./testcase
V1=v1 v2
V2=v1
V2=v2
(I note that your test case explicitly requested zsh, not bourne-shell
compatibility mode.)
If you wanted the first loop to split VAR on spaces, in zsh you need
to request that (when SH_WORD_SPLIT is not enabled):
for V in ${=VAR}; do
echo V1=$V
done
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author