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

Re: read -a



On Wed, May 30, 2018 at 2:00 PM, Tycho Grouwstra
<tychogrouwstra@xxxxxxxxx> wrote:
> As noted at SO
> <https://stackoverflow.com/questions/918886/how-do-i-split-a-string-on-a-delimiter-in-bash#comment75542583_918931>,
> `read -a` appears not yet supported in zsh.
> Was this omission intentional?

It's "read -A" in zsh, and (I believe) was so before bash added "read -a".

This is intended to match "set -A" which assigns an array (because
"set -a" means to enable the "allexport" option in both shells).



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