Skip Menu |
 

This queue is for tickets about the autodie CPAN distribution.

Report information
The Basics
Id: 49740
Status: resolved
Priority: 0/
Queue: autodie

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.06_01
Fixed in: (no value)

Attachments


Subject: autodie=system system(qw[ grep -P . 2]) broken "grep: invalid option -- ,"
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1253108757-27252-696"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 3143
"grep -P . 2" works from command line, and system, and IPC::System::Simple, but not with autodie=system echo >2 cat 2 grep -P . 2 perl -Mautodie=system -e " system qw[ grep -P . 2]" perl -MIPC::System::Simple=system -e " system qw[ grep -P . 2]" perl -Mautodie=system -MDevel::ModList -e 1 perl -Mautodie=:all -d:Trace -e " system qw[ grep -P . 2]" Show quoted text
>trace.autodie-2.06_01.txt 2>&1
D:\>echo >2 D:\>cat 2 ECHO is on. D:\>grep -P . 2 ECHO is on. D:\>perl -Mautodie=system -e " system qw[ grep -P . 2]" Subroutine IPC::System::Simple::WIFEXITED redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 109. Subroutine IPC::System::Simple::WEXITSTATUS redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 110. Subroutine IPC::System::Simple::WIFSIGNALED redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 111. Subroutine IPC::System::Simple::WTERMSIG redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 112. grep: invalid option -- , Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. "grep" unexpectedly returned exit value 2 at (eval 10) line 13 at -e line 1 D:\>perl -MIPC::System::Simple=system -e " system qw[ grep -P . 2]" Subroutine IPC::System::Simple::WIFEXITED redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 109. Subroutine IPC::System::Simple::WEXITSTATUS redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 110. Subroutine IPC::System::Simple::WIFSIGNALED redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 111. Subroutine IPC::System::Simple::WTERMSIG redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 112. ECHO is on. D:\>perl -Mautodie=system -MDevel::ModList -e 1 Subroutine IPC::System::Simple::WIFEXITED redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 109. Subroutine IPC::System::Simple::WEXITSTATUS redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 110. Subroutine IPC::System::Simple::WIFSIGNALED redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 111. Subroutine IPC::System::Simple::WTERMSIG redefined at C:/perl/site/5.10.1/lib/IPC/System/Simple.pm line 112. AutoLoader 5.69 Carp 1.11 Carp::Heavy Config Config_git.pl Config_heavy.pl Devel::ModList DynaLoader 1.10 Exporter 5.63 Fatal 2.06_01 Fcntl 1.06 File::Spec 3.3 File::Spec::Unix 3.3 File::Spec::Win32 3.3 IPC::System::Simple 1.18 List::Util 1.21 POSIX 1.17 Scalar::Util 1.21 Tie::Hash 1.03 Tie::RefHash 1.38 Win32 0.39 Win32::Process 0.14 XSLoader 0.10 autodie 2.06_01 autodie::exception 2.06_01 autodie::exception::system 2.06_01 base 2.14 constant 1.19 if 0.05 overload 1.07 re 0.09 vars 1.01 warnings 1.06 warnings::register 1.01 D:\>perl -Mautodie=:all -d:Trace -e " system qw[ grep -P . 2]" Show quoted text
>trace.autodie-2.06_01.txt 2>&1
D:\> D:\>
Subject: trace.autodie-2.06_01.txt
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1253108304-27252-695"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: text/plain; charset="utf-8"; name="trace.autodie-2.06_01.txt"
Content-Disposition: inline; filename="trace.autodie-2.06_01.txt"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: ascii
Content-Length: 35489

Message body is not shown because it is too large.

X-RT-Interface: REST
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
RT-Message-ID: <rt-4.0.18-10869-1579214988-165.49740-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 69
Ticket migrated to github as https://github.com/pjf/autodie/issues/90


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.