On Fri Jul 05 09:16:43 2013, [email protected] wrote:
This is a bug report for perl from [email protected],
generated with the help of perlbug 1.39 running under perl 5.18.0.
# is this difference in $? expected or a bug?
$ perl -e 'use warnings; local $?; qx(command_not_in_path_arglebargle
2>&1); print "$?\n";'
-1
$ perl -e 'use warnings FATAL => "all"; local $?;
qx(command_not_in_path_arglebargle 2>&1); print "$?\n";'
$ perl -e 'use warnings; qx(command_not_in_path_arglebargle 2>&1);
print "$?\n";'
-1
$ perl -e 'use warnings FATAL => "all";
qx(command_not_in_path_arglebargle 2>&1); print "$?\n";'
512
I tripped on the zero case (the second invocation) above. I expected
$? to be non-zero after the qx().
I get consistent results for the above on 5.8.7, 5.10.1, and 5.18.0.
Those are the only versions I tried.
This is a bug report for perl from [email protected],
generated with the help of perlbug 1.39 running under perl 5.18.0.
# is this difference in $? expected or a bug?
$ perl -e 'use warnings; local $?; qx(command_not_in_path_arglebargle
2>&1); print "$?\n";'
-1
$ perl -e 'use warnings FATAL => "all"; local $?;
qx(command_not_in_path_arglebargle 2>&1); print "$?\n";'
$ perl -e 'use warnings; qx(command_not_in_path_arglebargle 2>&1);
print "$?\n";'
-1
$ perl -e 'use warnings FATAL => "all";
qx(command_not_in_path_arglebargle 2>&1); print "$?\n";'
512
I tripped on the zero case (the second invocation) above. I expected
$? to be non-zero after the qx().
I get consistent results for the above on 5.8.7, 5.10.1, and 5.18.0.
Those are the only versions I tried.
---
via perlbug: queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118767