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


Groups > gnu.bash.bug > #11874 > unrolled thread

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

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2015-11-13 08:17 -0500
Last post2015-11-13 08:17 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2015-11-13 08:17 -0500
SubjectRe: redirecting a file descriptor to an array variable? Possible? How? RFE?
Message-ID<mailman.2257.1447420688.7904.bug-bash@gnu.org>
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.)

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web