Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Reading output into variables
- X-seq: zsh-users 18711
- From: Martin Vaeth <martin@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Reading output into variables
- Date: Tue, 8 Apr 2014 11:32:31 +0000 (UTC)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <lhuc74$rjf$1@ger.gmane.org>
- Reply-to: martin@xxxxxxxx
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