Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: field splitting
- X-seq: zsh-users 24810
- From: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: field splitting
- Date: Wed, 22 Apr 2020 20:20:03 +0200
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Zsh-Users List <zsh-users@xxxxxxx>
- In-reply-to: <CAH+w=7aQVhTbaiGb8-OAXC4sghvhPOncg8DbaNWC48R5SvO6WA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAP+y1xB2m980w0s1N2SdLuf9ibdcLUUJgTaq1hEM0d6Eq9VXCA@mail.gmail.com> <CAHYJk3SBrkdRHWSm=UM=de9+jSHCgpiGE-Q+0xf6OE3P0xQA5A@mail.gmail.com> <CAP+y1xDGKs45QE6fjxgrfentSfpxR+ZMfqPff=mtFp-atqT3bw@mail.gmail.com> <CAN=4vMr_Bd+TzfVE1Q5iWQZouMKhbHiA-2zp3tTxAM_P92KLYw@mail.gmail.com> <CAP+y1xDkd7d-QX3=v5DrpWj1ZE1Dgv=Q=k_kFF_My+xpjJ1AfA@mail.gmail.com> <CAN=4vMoqsihj1xEWKk2Ocm0xNOGmdgwVKjgNQOeUwrErSiGtYw@mail.gmail.com> <CAP+y1xCRipQx3WJF83JFYRGSmFtTW0ZzSUijLLXWW5upXnst4Q@mail.gmail.com> <CAH+w=7aQVhTbaiGb8-OAXC4sghvhPOncg8DbaNWC48R5SvO6WA@mail.gmail.com>
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