Follow-up Comment #2, bug #61009 (project findutils): [comment #1 comment #1:] > POSIX [1] specifies the following conditions when xargs shall terminate processing: > * child exits with 255, > * child was killed by a signal, or > * when reading the 'eofstr' string if the '-E eofstr' option is given, or > * when regularly reaching EOF when reading from stdin.
POSIX standardize those features that are already implemented by somebody ;-). > Still, our xargs might implement such an option as a GNU extension. That's great! > I would recommend a long-option like --stop-on-error for such an extension. This would be great if we have short option in addition to long, because this is a normal(usual) case when we want to early stop on error, i think. > Why did you propose '-F'? Is there any precedence in other xargs implementations? No. This is my invention just for demonstration :-). I think about it like -F = --fail-on-error. But -S for --stop-on-error will be good too. > Regarding the examples - and just to be sure: > I assume that the reproducer with 'cp' was just a simplification to demonstrate your actual use case, right? Yes. You are right. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61009> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/