From: Jerry D. Hedden Date: Tue, 10 Apr 2007 13:54:10 +0000 (-0400) Subject: Correct Shell.pm POD regarding $Shell::capture_stderr X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d93b8986a5bde3909220a24cbee3f646a5fcacd3;p=p5sagit%2Fp5-mst-13.2.git Correct Shell.pm POD regarding $Shell::capture_stderr From: "Jerry D. Hedden" Message-ID: <1ff86f510704101054q2ccc7c10l66d62971716877f9@mail.gmail.com> p4raw-id: //depot/perl@30907 --- diff --git a/lib/Shell.pm b/lib/Shell.pm index 0823884..72c7ec2 100644 --- a/lib/Shell.pm +++ b/lib/Shell.pm @@ -6,7 +6,8 @@ use File::Spec::Functions; our($capture_stderr, $raw, $VERSION, $AUTOLOAD); -$VERSION = '0.72'; +$VERSION = '0.72_01'; +$VERSION = eval $VERSION; sub new { bless \my $foo, shift } sub DESTROY { } @@ -205,11 +206,15 @@ quotes (C<">) on Windows. =head2 Configuration -If you set $Shell::capture_stderr to true, the module will attempt to +If you set $Shell::capture_stderr to 1, the module will attempt to capture the standard error output of the process as well. This is done by adding C<2E&1> to the command line, so don't try this on a system not supporting this redirection. +Setting $Shell::capture_stderr to -1 will send standard error to the +bit bucket (i.e., the equivalent of adding C<2E/dev/null> to the +command line). The same caveat regarding redirection applies. + If you set $Shell::raw to true no quoting whatsoever is done. =head1 BUGS