[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49217: [PATCH] doc: clarify valid ranges for shuf -i

From: Erik Auerswald
Subject: bug#49217: [PATCH] doc: clarify valid ranges for shuf -i
Date: Sat, 26 Jun 2021 19:01:46 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

* 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]