Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Reading output into variables
- X-seq: zsh-users 18702
- From: Yuri D'Elia <wavexx@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Reading output into variables
- Date: Mon, 07 Apr 2014 16:20:20 +0200
- 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
Maybe a stupid question, but is there a way to read the output of a
program and split into variables _conveniently_ using the IFS?
To clarify, I would the something as convenient as:
program | read a b
minus the subshell.
Note that I actually did the following:
program | { read a b; hooray }
when I could, so this "solution" doesn't count.
Bonus points if that's something that would also work in bash.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author