Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Subscripting without temporaries
- X-seq: zsh-users 7348
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Lloyd Zusman <ljz@xxxxxxxxxx>
- Subject: Re: Subscripting without temporaries
- Date: Tue, 13 Apr 2004 12:00:27 -0700
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <m3y8oz7rw8.fsf@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040413120053.GA4420@DervishD> <040413082948.ZM20696@xxxxxxxxxxxxxxxxxxxxxxx> <m3y8oz7rw8.fsf@xxxxxxxxxx>
On Tue, Apr 13, 2004 at 12:40:39PM -0400, Lloyd Zusman wrote:
> But what options are necessary in order to make this
> work? The commands above produce this output for me:
>
> Some
> text
> [particular
> text]
> Another
> text
You must have sh_word_split set. This tells zsh to do word-splitting
of variables, even when not explicitly asked to split things (like the
Bourne shell does). You can either turn this off, or put double quotes
around any variable that you don't want to be split.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author