develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #133130] `no autodie` removes system function

Thread Next
From:
James E Keenan via RT
Date:
April 21, 2018 02:30
Subject:
[perl #133130] `no autodie` removes system function
Message ID:
rt-4.0.24-14184-1524277811-320.133130-15-0@perl.org
On Sat, 21 Apr 2018 02:12:05 GMT, jkeenan wrote:
> On Fri, 20 Apr 2018 12:33:22 GMT, shcorey wrote:
> > Reply-To: shawnhcorey@gmail.com
> > Cc: SHCOREY@cpan.org
> > To: perlbug@perl.org
> > From: shawnhcorey@gmail.com
> > Subject: `no autodie` removes system function
> > Message-Id: <5.26.1_5820_1524227202@sage.Home>
> >
> >
> > This is a bug report for perl from shawnhcorey@gmail.com,
> > generated with the help of perlbug 1.40 running under perl 5.26.1.
> >
> >
> > -----------------------------------------------------------------
> > [Please describe your issue here]
> >
> > Using `no autodie` will remove the system function.
> >
> > #!/usr/bin/env perl
> >
> > use strict;
> > use warnings;
> >
> > use autodie;
> > {
> >     no autodie;
> > }
> > system( qw( ls . ));
> >
> > Emits the error:
> > Undefined subroutine called at ./eg-no-autodie-system.pl line 10.
> >
> 
> 'autodie' is maintained upstream on CPAN
> (http://search.cpan.org/~pjf/autodie-2.29/).  This problem has been
> reported previously in that distribution's bug tracker:
> 
> https://rt.cpan.org/Ticket/Display.html?id=114798
> 
> My hunch is that this is not so much a pure BBC as a bad interaction
> between blead and CPAN.  Am trying to bisect blead to see the point at
> which the 'autodie' shipped with blead exhibits this behavior.  (Hint:
> probably between 5.20 and 5.22.)
> 
> Thank you very much.

Bisection points to a commit at which blead's autodie was synched with upstream:

#####
f91d7e0d6f9534398b091503efca8c511bbf5174 is the first bad commit
commit f91d7e0d6f9534398b091503efca8c511bbf5174
Author: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
Date:   Tue May 27 22:45:06 2014 +0100

    Update autodie to CPAN version 2.25
#####

From which I infer that the upstream author has not fixed the problem in releases subsequent to 2.25.  So the previously filed ticket on rt.cpan.org is the place where this has to be discussed.

Closing this ticket.

Thank you very much.

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133130

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About