xargs: restore correct behaviour of -n option
authorRon Yorston <rmy@pobox.com>
Wed, 19 Feb 2020 11:01:39 +0000 (11:01 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 29 Apr 2020 13:53:51 +0000 (15:53 +0200)
Since commit 1ff7002b1 (xargs: fix handling of quoted arguments, closes
11441) the -n option hasn't worked properly:

   $ echo 1 2 3 | xargs -n 1 echo
   1
   2

   3

   $

Because state is now remembered between calls to process_stdin() it's
necessary to update the state before any premature return.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

No differences found