Page MenuHomeFreeBSD

xargs: disallow -R0 and -L0
ClosedPublic

Authored by des on Jul 13 2023, 7:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 6:49 AM
Unknown Object (File)
May 29 2026, 1:52 PM
Unknown Object (File)
May 17 2026, 3:34 PM
Unknown Object (File)
May 17 2026, 12:32 PM
Unknown Object (File)
May 16 2026, 1:19 PM
Unknown Object (File)
Apr 29 2026, 10:28 AM
Unknown Object (File)
Apr 29 2026, 10:23 AM
Unknown Object (File)
Apr 28 2026, 4:41 PM
Subscribers

Details

Reviewers
kevans
Group Reviewers
Klara
Commits
rG1048a870e3b6: xargs: disallow -R0 and -L0
Summary

Both cases were interpreted as these flags are unset. This meant that
-R0 got converted to -R5 and that -L0 didn't have any effect at all.
Since make at most 0 replacements isn't useful and since call utility
for every 0 lines read doesn't make sense, throw an error for these
two cases.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable