]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
getopt: refine syntax of previous change
authorJim Meyering <meyering@redhat.com>
Sun, 15 Jan 2012 16:57:54 +0000 (17:57 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 15 Jan 2012 17:51:02 +0000 (18:51 +0100)
* lib/Autom4te/General.pm (getopt): Use a more concise test.

ChangeLog
lib/Autom4te/General.pm

index 4adfc58994ce8ef32ab300ae996454ea343290c0..cc33103bce06c5497aabb1dbb9fac72d7f1d3a78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-15  Jim Meyering  <meyering@redhat.com>
+
+       getopt: refine syntax of previous change
+       * lib/Autom4te/General.pm (getopt): Use a more concise test.
+
 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        getopt: remove hack for special handling of "-" argument
index e427aa79259b6eb51abd77cf09512e30ae85f25f..f05042f60aefe8165950f05ff2e02f5ad7112b2f 100644 (file)
@@ -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)