xargs quits on non-zero status

[email protected] ("Wilson, Douglas") Mon, 26 Jul 2004 14:38:56 -0700
Newsgroups perl.ppt
Message-ID <[email protected]>
The existing xargs executes a command with this line:
system(@run) == 0 or exit($? >> 8);

which means that the command exits when any command
returns a non-zero status. This doesn't emulate the
usual unix behavior. E.g., This should search all files:

find . | xargs -n1 grep "something"

But if the ppt version doesn't find "something" in the first file it
searches, it'll quit. Should this be changed, or should
another version be added (the existing one is xargs.sarathy)?
Does this matter all that much?

-Doug