develooper Front page | perl.perl5.porters | Postings from May 2013

[perl #118025] Case insensitive parsing causes -d to be incorrectly parsed

Thread Previous
From:
James E Keenan via RT
Date:
May 17, 2013 23:44
Subject:
[perl #118025] Case insensitive parsing causes -d to be incorrectly parsed
Message ID:
rt-3.6.HEAD-2650-1368834259-318.118025-15-0@perl.org
On Thu May 16 17:26:07 2013, agregory wrote:
> Subject: [PATCH] 969832d corelist: use case-sensitive option parsing
> Message-Id: <5.16.3_9939_1368750526@b42-desktop.local>
> Reply-To: andrew.gregory.8@gmail.com
> To: perlbug@perl.org
> From: andrew.gregory.8@gmail.com
> 
> 
> This is a bug report for perl from andrew.gregory.8@gmail.com,
> generated with the help of perlbug 1.39 running under perl 5.16.3.
> 
[snip]
> 
> 
> Case insensitive parsing causes -d to be incorrectly parsed as -D, the
> short option for --diff.
> 
> Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
> ---
>  dist/Module-CoreList/corelist | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
[snip]
> 
> diff --git a/dist/Module-CoreList/corelist b/dist/Module-
>    CoreList/corelist
> index b012c5e..448b77b 100644
> --- a/dist/Module-CoreList/corelist
> +++ b/dist/Module-CoreList/corelist
> @@ -131,7 +131,7 @@ requested perl versions.
>  =cut
> 
>  use Module::CoreList;
> -use Getopt::Long;
> +use Getopt::Long qw(:config no_ignore_case);
>  use Pod::Usage;
>  use strict;
>  use warnings;
> 

Can you provide an example of the problem which your patch seeks to correct?

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118025

Thread Previous


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