Skip Menu |

This queue is for tickets about the Perl-MinimumVersion CPAN distribution.

Report information
The Basics
Id: 96163
Status: open
Priority: 0/
Queue: Perl-MinimumVersion

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: 5.14.0 feature: -C<x> in shebang lines
I came across this when I released Dist-Zilla-Plugin-Test-Compile - t/13-shebang-dashes.t (which I added in that version) executes perl with a script containing the shebang "#!/usr/bin/perl -CS", which only became legal in 5.014. Here is the regex I am using for extracting shebangs and flags: $line =~ /^#!\s*(?:\S*perl\S*)((?:\s+-\w*)*)(?:\s*#.*)?$/; my @flags = $1 ? split(' ', $1) : ();
On 2014-06-02 23:06:47, ETHER wrote: Show quoted text
> I came across this when I released Dist-Zilla-Plugin-Test-Compile
...version 2.041
On Tue Jun 03 02:06:47 2014, ETHER wrote: Show quoted text
> I came across this when I released Dist-Zilla-Plugin-Test-Compile - > t/13-shebang-dashes.t (which I added in that version) executes perl > with a script containing the shebang "#!/usr/bin/perl -CS", which only > became legal in 5.014.
Note: cpantesters report shows error "Unknown Unicode option letter ' '". This means that it is perl bug RT #72434 ( https://rt-archive.perl.org/perl5/Ticket/Display.html?id=72434 / https://github.com/Perl/perl5/issues/10127), any content after -C is an error. Confirmed this on 5.10.1 (was unable to build 5.12.x). -- Alexandr Ciornii, http://chorny.net