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

Re: Reading output into variables



Yuri D'Elia <wavexx@xxxxxxxxxx> wrote:
>
> program | read a b
>
> minus the subshell.

In zsh or bash:

read a b < <(program)

In POSIX (hence also in zsh or bash):

read a b <<END
$(program)
END



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