summaryrefslogtreecommitdiff
path: root/lib/Shell.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Shell.pm')
-rw-r--r--lib/Shell.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Shell.pm b/lib/Shell.pm
index 9762a3aa0b..81b25985a5 100644
--- a/lib/Shell.pm
+++ b/lib/Shell.pm
@@ -30,6 +30,7 @@ sub AUTOLOAD {
$cmd =~ s/^.*:://;
eval <<"*END*";
sub $AUTOLOAD {
+ shift if ref \$_[0] && \$_[0]->isa( 'Shell' );
if (\@_ < 1) {
\$Shell::capture_stderr ? `$cmd 2>&1` : `$cmd`;
} elsif ('$^O' eq 'os2') {