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.
Referenced Files
Unknown Object (File)
Tue, Aug 25, 6:01 PM
Unknown Object (File)
Fri, Aug 21, 5:07 PM
Unknown Object (File)
Thu, Aug 20, 5:22 AM
Unknown Object (File)
Tue, Aug 18, 2:47 AM
Unknown Object (File)
Mon, Aug 17, 5:38 AM
Unknown Object (File)
Mon, Aug 17, 1:01 AM
Unknown Object (File)
Sat, Aug 15, 8:54 AM
Unknown Object (File)
Wed, Aug 12, 8:05 PM
Subscribers

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