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)
Sun, Sep 21, 6:40 PM
Unknown Object (File)
Sep 5 2025, 3:06 PM
Unknown Object (File)
Sep 3 2025, 5:39 PM
Unknown Object (File)
Aug 23 2025, 6:26 PM
Unknown Object (File)
Aug 17 2025, 1:13 PM
Unknown Object (File)
Aug 16 2025, 6:58 AM
Unknown Object (File)
Aug 14 2025, 11:27 PM
Unknown Object (File)
Aug 13 2025, 6:26 AM
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