GNU bug report logs -
#49217
'shuf' returns nothing if the low range number is higher by 1 than the high number
Previous Next
Reported by: F8ER F8ER <the.f8er <at> gmail.com>
Date: Fri, 25 Jun 2021 04:14:02 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #37 received at 49217 <at> debbugs.gnu.org (full text, mbox):
* doc/coreutils.texi (shut invocation): Mention valid and invalid
edge cases for --input-range.
---
doc/coreutils.texi | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index ea040458e..f59c5e962 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -4978,7 +4978,10 @@ Treat each command-line operand as an input line.
@opindex --input-range
@cindex input range to shuffle
Act as if input came from a file containing the range of unsigned
-decimal integers @var{lo}@dots{}@var{hi}, one per line.
+decimal integers @var{lo}@dots{}@var{hi}, one per line. If @var{lo} is
+equal to @var{hi}, this is a single line. If @var{lo} is one bigger than
+@var{hi}, this is accepted as the empty range. Other cases of @var{lo}
+greater than @var{hi} are rejected as invalid.
@end table
--
2.17.1
This bug report was last modified 3 years and 326 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.