diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-15 17:57:54 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-15 18:51:02 +0100 |
commit | e2816169d5f33d6624b60f41eef1fce7779b585a (patch) | |
tree | 1ba25583d6295a35ac2d633aa271355d89310b4b /lib | |
parent | c3797b86ccbd96c7353254fc0a36611cfdc4379b (diff) | |
download | autoconf-e2816169d5f33d6624b60f41eef1fce7779b585a.tar.gz |
getopt: refine syntax of previous change
* lib/Autom4te/General.pm (getopt): Use a more concise test.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Autom4te/General.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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) |