zsh-users
 help / color / mirror / code / Atom feed
* Reading output into variables
@ 2014-04-07 14:20 Yuri D'Elia
  2014-04-07 15:11 ` Peter Stephenson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Yuri D'Elia @ 2014-04-07 14:20 UTC (permalink / raw)
  To: zsh-users

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.


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

end of thread, other threads:[~2014-04-08 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-07 14:20 Reading output into variables Yuri D'Elia
2014-04-07 15:11 ` Peter Stephenson
2014-04-07 15:16 ` TJ Luoma
2014-04-07 15:44 ` Bart Schaefer
2014-04-08 11:32 ` Martin Vaeth

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).