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

Re: field splitting



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]}



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