[PATCH] cat -u clarification

Roger Luethi <[email protected]>
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <[email protected]>
I have seen people complain (based on the man page) that GNU cat doesn't
support -u, although POSIX requires it. Yeah, they could have read the
source or tested the program. It is true though that the documentation is
somewhat ambiguous. The attached patch addresses this tiny problem.

Roger

-- 
Hedonist for hire. No job too easy.
textutils-2.0.21-cat.c.diff (text/plain, 974 B)
diff -ur textutils-2.0.21.org/doc/coreutils.texi textutils-2.0.21/doc/coreutils.texi
--- textutils-2.0.21.org/doc/coreutils.texi	Sun Feb 17 22:47:23 2002
+++ textutils-2.0.21/doc/coreutils.texi	Fri May  3 03:06:48 2002
@@ -994,7 +994,7 @@
 
 @item -u
 @opindex -u
-Ignored; for Unix compatibility.
+Ignored; for Unix compatibility. GNU cat is always unbuffered.
 
 @item -v
 @itemx --show-nonprinting
diff -ur textutils-2.0.21.org/src/cat.c textutils-2.0.21/src/cat.c
--- textutils-2.0.21.org/src/cat.c	Sat Dec  1 18:29:26 2001
+++ textutils-2.0.21/src/cat.c	Fri May  3 03:03:17 2002
@@ -106,7 +106,7 @@
       fputs (_("\
   -t                       equivalent to -vT\n\
   -T, --show-tabs          display TAB characters as ^I\n\
-  -u                       (ignored)\n\
+  -u                       (ignored -- always unbuffered)\n\
   -v, --show-nonprinting   use ^ and M- notation, except for LFD and TAB\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.