On Wed, Dec 13, 2023 at 9:29 PM Kerin Millar wrote:
> On Wed, 13 Dec 2023 20:50:48 -0500
> Zachary Santer wrote:
> > Would using funsubs to capture the stdout of external commands be
> > appreciably faster than using comsubs for the same?
>
> In the case of a script that would otherwise fork many
A very common thing I need to do when writing bash is to collect both
the stdout and stderr of a command. This can be done relatively
reasonably with files but it would be very attractive to be able to
redirect these directly to a variable some how.
cmd >@stdout 2>@stderr
exit_code=$?
where "stdo