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)
Mon, Dec 29, 5:19 AM
Unknown Object (File)
Wed, Dec 10, 11:11 AM
Unknown Object (File)
Nov 27 2025, 5:35 PM
Unknown Object (File)
Nov 25 2025, 2:26 AM
Unknown Object (File)
Nov 24 2025, 2:12 PM
Unknown Object (File)
Nov 17 2025, 12:22 AM
Unknown Object (File)
Nov 4 2025, 8:16 AM
Unknown Object (File)
Oct 31 2025, 2:51 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 52625
Build 49516: arc lint + arc unit