summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--doc/coreutils.texi6
-rw-r--r--src/shuf.c2
3 files changed, 7 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 3be1ad467..196dc48f5 100644
--- a/NEWS
+++ b/NEWS
@@ -40,6 +40,9 @@ GNU coreutils NEWS -*- outline -*-
od no longer suffers from platform bugs in printf(3). This is
probably most noticeable when using 'od -tfL' to print long doubles.
+ shuf --head-count is now correctly documented. The documentation
+ previously claimed it was called --head-lines.
+
** Improvements
Improved support for access control lists (ACLs): On MacOS X, Solaris 7..10,
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 8eb8ac9da..76b22e44d 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -4176,11 +4176,11 @@ operation modes:
@table @samp
@item -n @var{lines}
-@itemx --head-lines=@var{lines}
+@itemx --head-count=@var{count}
@opindex -n
-@opindex --head-lines
+@opindex --head-count
@cindex head of output
-Output at most @var{lines} lines. By default, all input lines are
+Output at most @var{count} lines. By default, all input lines are
output.
@item -o @var{output-file}
diff --git a/src/shuf.c b/src/shuf.c
index 5e07d6e49..977eedc0a 100644
--- a/src/shuf.c
+++ b/src/shuf.c
@@ -60,7 +60,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
fputs (_("\
-e, --echo treat each ARG as an input line\n\
-i, --input-range=LO-HI treat each number LO through HI as an input line\n\
- -n, --head-lines=LINES output at most LINES lines\n\
+ -n, --head-count=COUNT output at most COUNT lines\n\
-o, --output=FILE write result to FILE instead of standard output\n\
--random-source=FILE get random bytes from FILE (default /dev/urandom)\n\
-z, --zero-terminated end lines with 0 byte, not newline\n\