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

Re: field splitting



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