Skip Menu |

This queue is for tickets about the Getopt-Long CPAN distribution.

Report information
The Basics
Id: 114999
Status: resolved
Priority: 0/
Queue: Getopt-Long

People
Owner: Nobody in particular
Requestors: IKEGAMI [...] cpan.org
Cc: dom [...] cpan.org
gregoa [...] cpan.org
Roy.Ivy.III [...] gmail.com
AdminCc:

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



Subject: ":number" broken in 2.48
$ perl -E' use Getopt::Long qw( :config gnu_getopt ); say $Getopt::Long::VERSION; GetOptions(\my %opts, "c:20"); say $opts{c} // "[undef]" ' -- -c 2.47 20 $ perl -E' use Getopt::Long qw( :config gnu_getopt ); say $Getopt::Long::VERSION; GetOptions(\my %opts, "c:20"); say $opts{c} // "[undef]" ' -- -c 2.48 [undef]
A test should also be added.
Roy, this looks like a side effect of your gnu getopt compatibility patch. Can you take a look?
On Thu Jun 02 02:31:09 2016, JV wrote: Show quoted text
> Roy, this looks like a side effect of your gnu getopt compatibility patch. > Can you take a look?
Sure, I'm happy to look at it.
Any news here? This regression breaks unrelated software. Known so far: t-prot, as mentioned in https://bugs.debian.org/855532 Cheers, gregor
Rejected due to lack of interest.
On Tue Aug 18 08:13:20 2020, JV wrote: Show quoted text
> Rejected due to lack of interest.
I was going to request the addition of a message stating the failing combination isn't supported, but it seems to have been fixed. perl -E' use Getopt::Long qw( :config gnu_getopt ); say $Getopt::Long::VERSION; GetOptions(\my %opts, "c:20"); say $opts{c} // "[undef]" ' -- -c 2.52 20
In fact, the change long explicitly mentions this ticket, saying the issue was fixed in 2.49
On Tue Aug 18 17:42:45 2020, ikegami wrote: Show quoted text
> In fact, the change long explicitly mentions this ticket, saying the > issue was fixed in 2.49
I contributed the fix in a commit/patch several years ago (see https://github.com/sciurius/perl-Getopt-Long/commit/5d9947fb445327c7299d8beb009d609bc70066c0). As you say, it was merged into v2.49.
Ok, thanks!