diff --git a/bin/xargs b/bin/xargs index a0c35f38..3512d6c1 100755 --- a/bin/xargs +++ b/bin/xargs @@ -29,20 +29,20 @@ use constant EX_FAILURE => 1; my $Program = basename($0); my %o; -getopts('0tn:l:s:I:', \%o) or die <) { chomp; + next unless (length && m/\S/); $line .= $_ if $o{I}; $totlines++; my @words = quotewords($sep, 1, $_); push @args, grep { defined } @words; last if $o{n} and @args >= $o{n}; last if $o{s} and length("@args") >= $o{s}; - last if $o{l} and $totlines >= $o{l}; + last if $o{'L'} and $totlines >= $o{'L'}; } my @run = @ARGV; push @run, 'echo' unless (@run);