From: Jim Meyering Date: Sun, 15 Jan 2012 16:57:54 +0000 (+0100) Subject: getopt: refine syntax of previous change X-Git-Tag: v2.68b~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2816169d5f33d6624b60f41eef1fce7779b585a;p=thirdparty%2Fautoconf.git getopt: refine syntax of previous change * lib/Autom4te/General.pm (getopt): Use a more concise test. --- diff --git a/ChangeLog b/ChangeLog index 4adfc589..cc33103b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-15 Jim Meyering + + getopt: refine syntax of previous change + * lib/Autom4te/General.pm (getopt): Use a more concise test. + 2011-01-15 Stefano Lattarini getopt: remove hack for special handling of "-" argument diff --git a/lib/Autom4te/General.pm b/lib/Autom4te/General.pm index e427aa79..f05042f6 100644 --- a/lib/Autom4te/General.pm +++ b/lib/Autom4te/General.pm @@ -265,7 +265,7 @@ sub getopt (%) # FIXME: Lot of code duplication with automake here. It would probably # be best to generalize our getopt() func and rip it out in a new module # from which automake can sync. - if (defined $ARGV[0] && $ARGV[0] =~ /^-./) + if (@ARGV && $ARGV[0] =~ /^-./) { my %argopts; for my $k (keys %option)