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

Re: field splitting



thanks will go with this for now

Il giorno mer 22 apr 2020 alle 20:14 Bart Schaefer <
schaefer@xxxxxxxxxxxxxxxx> ha scritto:

> On Wed, Apr 22, 2020 at 10:54 AM Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
> wrote:
> >
> > so it's a bug in that version? this is the zsh that comes with ubuntu
> xenial
>
> It's intentional behavior; the newer version provides an alternate
> behavior that is closer to what you want.
>
> The workaround in older versions of zsh is to use a dummy array
> variable:   ${${(As: :)dummy::=$line}[1]}
>
-- 
Pier Paolo Grassi


Messages sorted by: Reverse Date, Date, Thread, Author