cat: improve documentation
authorEric Blake <eblake@redhat.com>
Wed, 9 Jun 2010 17:13:13 +0000 (11:13 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 14 Jun 2010 21:42:24 +0000 (15:42 -0600)
* src/cat.c (usage): Clarify that -b overrides -n.
* doc/coreutils.texi (cat invocation): Likewise.
* THANKS: Update.
Suggested by Chas. Owens, in bug 6383.

THANKS
doc/coreutils.texi
src/cat.c

diff --git a/THANKS b/THANKS
index dce3c94..caa40de 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -103,6 +103,7 @@ Carl Roth                           roth@urs.us
 Carlos Canau                        Carlos.Canau@relay.puug.pt
 Charles Karney                      karney@pppl.gov
 Charles Randall                     crandall@matchlogic.com
+Chas. Owens                         chas.owens@gmail.com
 Chip Salzenberg                     chip@valinux.com
 Chris Clayton                       chris2553@googlemail.com
 Chris Faylor                        cgf@cygnus.com
index 102ceaf..f103bd8 100644 (file)
@@ -1494,7 +1494,8 @@ Display a @samp{$} after the end of each line.
 @itemx --number
 @opindex -n
 @opindex --number
-Number all output lines, starting with 1.
+Number all output lines, starting with 1.  This option is ignored
+if @option{-b} is in effect.
 
 @item -s
 @itemx --squeeze-blank
index eebfb97..c4a2a9e 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -92,7 +92,7 @@ Usage: %s [OPTION]... [FILE]...\n\
 Concatenate FILE(s), or standard input, to standard output.\n\
 \n\
   -A, --show-all           equivalent to -vET\n\
-  -b, --number-nonblank    number nonempty output lines\n\
+  -b, --number-nonblank    number nonempty output lines, overrides -n\n\
   -e                       equivalent to -vE\n\
   -E, --show-ends          display $ at end of each line\n\
   -n, --number             number all output lines\n\