Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11874

Re: redirecting a file descriptor to an array variable? Possible? How? RFE?

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: redirecting a file descriptor to an array variable? Possible? How? RFE?
Date 2015-11-13 08:17 -0500
Message-ID <mailman.2257.1447420688.7904.bug-bash@gnu.org> (permalink)
References <564532BD.60801@tlinx.org>

Show all headers | View raw


On Thu, Nov 12, 2015 at 04:45:49PM -0800, Linda Walsh wrote:
> I'm coming up with a null-record in my brain when I think
> about this:  I'd like to be able to record stdout and stderr
> without using any temp files into bash array files, AND
> record the status of the command executed.

There is no way to do this currently.  Storing stdout and stderr
separately requires at least one temp file.  (Actually in the most
general case, where those output streams may contain NUL bytes,
it requires two temp files, because you can't store arbitrary data
streams in bash variables at all.)

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: redirecting a file descriptor to an array variable? Possible? How? RFE? Greg Wooledge <wooledg@eeg.ccf.org> - 2015-11-13 08:17 -0500

csiph-web