Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: field splitting
- X-seq: zsh-users 24803
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Subject: Re: field splitting
- Date: Wed, 22 Apr 2020 19:18:41 +0200
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh-Users List <zsh-users@xxxxxxx>
- In-reply-to: <CAP+y1xDGKs45QE6fjxgrfentSfpxR+ZMfqPff=mtFp-atqT3bw@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>
On Wed, Apr 22, 2020 at 7:13 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> doesn't seem to work
>
> line="abcd"
> echo -n ${${(As: :)line}[1]}
> a
Curious. How about this?
zsh -fc 'line="abcd"; echo ${${(As: :)line}[1]} $ZSH_VERSION'
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author