Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the IO-CaptureOutput CPAN distribution.

Report information
The Basics
Id: 29289
Status: resolved
Priority: 0/
Queue: IO-CaptureOutput

People
Owner: Nobody in particular
Requestors: evank [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 1.04_02



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; > } >