|
[text/plain 983b]
On Wed Mar 12 10:26:40 2008, schwern[...]pobox.com wrote:
> RKOBES via RT wrote:
> >> exit() has a prototype of ;$ so it interprets @_ in scalar context.
> > If you
> >> give it an argument it exits with 1. The test is now failing
correctly.
> >
> > Does this suggest the following patch to Shell::Command?
>
> Yep.
>
>
> > ===================================================================
> > --- Command.pm (revision 10908)
> > +++ Command.pm (working copy)
> > @@ -6,7 +6,7 @@
> > # takes effect.
> > BEGIN {
> > *CORE::GLOBAL::exit = sub {
> > - CORE::exit(@_) unless caller eq 'ExtUtils::Command';
> > + CORE::exit($_[0]) unless caller eq 'ExtUtils::Command';
> >
> > my $exit = $_[0] || 0;
> > die "exit: $exit\n";
> >
> >
> > With this, the shell_exit test passes for both Test::Simple version 0.78
> > and earlier versions.
Thanks very much, and also thanks for tracking this down. This is fixed
in ExtUtils-Command-1.14, which will be on CPAN shortly.
|