bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Greg Wooledge
Subject: Re: redirecting a file descriptor to an array variable? Possible? How? RFE?
Date: Fri, 13 Nov 2015 08:17:35 -0500
User-agent: Mutt/1.4.2.3i

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]