Subject: | [PATCH] STDOUT/ERR combined, also for system commands |
This builds upon the patch in #24695 (that allows STDOUT and STDERR to
be captured in the same scalar), and adds another sub
"capture_exec_single". It is identical to "capture_exec", but returns
the combined output as a scalar.
Subject: | capture_exec_single.diff |
28a50,56
> sub capture_exec_single {
> my @args = @_;
> my $output;
> capture sub { system _shell_quote(@args)}, \$output, \$output;
> return $output;
> }
>