Page MenuHomeFreeBSD

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

Authored by temcbun_gmail.com on Aug 5 2026, 7:05 PM.
Referenced Files
F172785829: D58679.diff
Sun, Sep 20, 11:50 PM
F172770443: D58679.diff
Sun, Sep 20, 9:13 PM
Unknown Object (File)
Sat, Sep 19, 4:59 PM
Unknown Object (File)
Fri, Sep 18, 4:26 PM
Unknown Object (File)
Mon, Sep 14, 9:52 PM
Unknown Object (File)
Thu, Sep 10, 9:35 PM
Unknown Object (File)
Thu, Sep 10, 5:13 PM
Unknown Object (File)
Wed, Sep 9, 1:58 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