]> git.ipfire.org Git - thirdparty/coreutils.git/commit
shuf: better diagnostic for ‘shuf -i -10-10’
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jun 2022 15:59:09 +0000 (10:59 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jun 2022 16:03:00 +0000 (11:03 -0500)
commit9f71f478ec6929d323c17f0482db8791de87b4fd
tree41a2fc30d4b4cdf50834a50a12368a992f8f34b5
parent6c03e8fbb25d52b5fda62a95090568f0ba5fca70
shuf: better diagnostic for ‘shuf -i -10-10’

* src/shuf.c: Do not include xdectoint.h.
(main): Improve diagnostic for ‘shuf -i -10-10’.  Without this
patch, the diagnostic was “shuf: invalid input range: ‘’” which is
not helpful.  Now it is “shuf: invalid input range: ‘-10-10’”.
src/shuf.c