Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: Greg Wooledge Newsgroups: gnu.bash.bug Subject: Re: redirecting a file descriptor to an array variable? Possible? How? RFE? Date: Fri, 13 Nov 2015 08:17:35 -0500 Lines: 12 Approved: bug-bash@gnu.org Message-ID: References: <564532BD.60801@tlinx.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1447420688 6012 208.118.235.17 (13 Nov 2015 13:18:08 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash To: Linda Walsh Envelope-to: bug-bash@gnu.org Content-Disposition: inline In-Reply-To: <564532BD.60801@tlinx.org> User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 139.137.100.1 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11874 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.)