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

Re: read -a



Got it, thanks!

On Wed, May 30, 2018, 11:17 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:

> 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