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
F170725805: D58679.diff
Sun, Sep 6, 6:00 AM
F170610736: D58679.diff
Sat, Sep 5, 3:29 PM
F170609360: D58679.diff
Sat, Sep 5, 3:21 PM
F170567820: D58679.id183486.diff
Sat, Sep 5, 11:00 AM
F170537173: D58679.id.diff
Sat, Sep 5, 7:27 AM
Unknown Object (File)
Sat, Sep 5, 12:16 AM
Unknown Object (File)
Thu, Sep 3, 3:56 PM
Unknown Object (File)
Thu, Sep 3, 3:17 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