zsh-workers
 help / color / mirror / code / Atom feed
* read -a
@ 2018-05-30 21:00 Tycho Grouwstra
  2018-05-30 21:17 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Tycho Grouwstra @ 2018-05-30 21:00 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: read -a
  2018-05-30 21:00 read -a Tycho Grouwstra
@ 2018-05-30 21:17 ` Bart Schaefer
  2018-05-30 22:30   ` Tycho Grouwstra
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2018-05-30 21:17 UTC (permalink / raw)
  To: Tycho Grouwstra; +Cc: zsh-workers

On Wed, May 30, 2018 at 2:00 PM, Tycho Grouwstra
<tychogrouwstra@gmail.com> 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).


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: read -a
  2018-05-30 21:17 ` Bart Schaefer
@ 2018-05-30 22:30   ` Tycho Grouwstra
  0 siblings, 0 replies; 3+ messages in thread
From: Tycho Grouwstra @ 2018-05-30 22:30 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

Got it, thanks!

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

> On Wed, May 30, 2018 at 2:00 PM, Tycho Grouwstra
> <tychogrouwstra@gmail.com> 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).
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-30 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 21:00 read -a Tycho Grouwstra
2018-05-30 21:17 ` Bart Schaefer
2018-05-30 22:30   ` Tycho Grouwstra

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).