Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Subscripting without temporaries



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