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)
Fri, May 29, 1:52 PM
Unknown Object (File)
Sun, May 17, 3:34 PM
Unknown Object (File)
Sun, May 17, 12:32 PM
Unknown Object (File)
Sat, May 16, 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
Unknown Object (File)
Apr 28 2026, 4:33 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