X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=blobdiff_plain;ds=sidebyside;f=expandvars;h=d9d7fd99ae2430216892b79893166542cff28409;hb=1328a508296d5a8756f0ea66765f659babadb67a;hp=68f56c8baf9fa6d77a25030e3f86faab5038b7cf;hpb=14dc7dbba7148721b24bd2f561af3ff7cce22931;p=bin.git diff --git a/expandvars b/expandvars index 68f56c8..d9d7fd9 100755 --- a/expandvars +++ b/expandvars @@ -53,7 +53,7 @@ while () last; } -usage unless defined @params && $#params >= 0; +usage unless @params; # Eek. This matches the next (optionally double-quoted) string on the line. my $stringre = qr/\s*("(?:[^\\]|\\.)*?"|(?:[^\\]|\\.)+?)(?:\s|$)/;