HomeFreeBSD

xargs: disallow -R0 and -L0

Description

xargs: disallow -R0 and -L0

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.

MFC after: 1 week
Reviewed by: des, kevans
Differential Revision: https://reviews.freebsd.org/D41022

Details

Provenance
tamelingdaniel_gmail.comAuthored on Jul 13 2023, 8:06 PM
desCommitted on Jul 13 2023, 9:35 PM
Reviewer
des
Differential Revision
D41022: xargs: disallow -R0 and -L0
Parents
rG202adb223610: xargs: fix -R so that it accepts negative numbers again
Branches
Unknown
Tags
Unknown