Page MenuHomeFreeBSD

xargs(1): Warn about mutually exclusive -I and -n
Needs ReviewPublic

Authored by temcbun_gmail.com on Wed, Aug 5, 7:05 PM.

Details

Summary

When both are specified, the latter, effectively has no effect (ignored). Even though the usage string put them as mutually exclusive options, we can't just usage() here, because other implementations (for instance, GNU one) does not stop at this point, but prints a warning: xargs: warning: options --max-lines and --replace/-I/-i are mutually exclusive, ignoring previous --max-lines value. So, in order to stay backward compatible, print the warning message and continue the execution.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped