HomeFreeBSD

xargs: fix -R so that it accepts negative numbers again

Description

xargs: fix -R so that it accepts negative numbers again

fbc445addf9 converted the parsing of arguments to strtonum but made
the accepted range for -R too restrictive. As documented in the man
page, it should accept negative numbers.

Added a test for this, which was provided by Jose Luis Duran.

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

Details

Provenance
tamelingdaniel_gmail.comAuthored on Jul 13 2023, 8:06 PM
desCommitted on Jul 13 2023, 9:35 PM
Reviewer
des
Differential Revision
D41021: xargs: fix -R so that it accepts negative numbers again
Parents
rGc3f58005d92e: signal: Remove gsignal references from manuals
Branches
Unknown
Tags
Unknown