Page MenuHomeFreeBSD

xargs: disallow -R0 and -L0
ClosedPublic

Authored by des on Jul 13 2023, 7:59 PM.
Tags
None
Referenced Files
F102943873: D41022.id.diff
Tue, Nov 19, 1:33 AM
Unknown Object (File)
Sun, Nov 17, 4:14 PM
Unknown Object (File)
Sun, Nov 17, 2:22 PM
Unknown Object (File)
Sun, Nov 17, 11:58 AM
Unknown Object (File)
Sep 28 2024, 1:19 PM
Unknown Object (File)
Sep 28 2024, 1:19 PM
Unknown Object (File)
Sep 28 2024, 1:19 PM
Unknown Object (File)
Sep 28 2024, 1:08 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