develooper Front page | perl.perl5.porters | Postings from July 2009

Re: [perl #67880] #!perl -CS again

From:
Dave Mitchell
Date:
July 26, 2009 06:21
Subject:
Re: [perl #67880] #!perl -CS again
Message ID:
20090726132136.GJ4204@iabyn.com
On Sat, Jul 25, 2009 at 11:46:43AM -0700, Father Chrysostomos wrote:
> perl 5.10.0 dies if -C occurs on the #! line. This was to avoid the  
> problem of the options being present but not doing anything (see  
> #34087). But this breaks many existing programs that were relying on  
> the kernel to read the first line and pass the switch to perl.
> 
> The attached patch changes perl to die only when the #! switch differs  
> from the command line switch.
> 
> Since this is a 5.10 regression, is there any chance it could make its  
> way into 5.10.1?

Since the only side-effect is to sometimes not croak when it formerly
would have done, I decided it was safe enough for 5.10.1.

-- 
Overhead, without any fuss, the stars were going out.
    -- Arthur C Clarke



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