echo: correct description of \c
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 8 Aug 2008 21:15:52 +0000 (23:15 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 11 Aug 2008 08:09:56 +0000 (10:09 +0200)
* src/echo.c (usage): Correct description of \c.
* coreutils.texi (echo invocation): Likewise.
* src/echo.c: Remove --help-duplicating comment.

doc/coreutils.texi
src/echo.c

index b044d0c..cfd283d 100644 (file)
@@ -10394,7 +10394,7 @@ alert (bell)
 @item \b
 backspace
 @item \c
-suppress trailing newline
+produce no further output
 @item \f
 form feed
 @item \n
index 21213bf..8a6466e 100644 (file)
   proper_name ("Brian Fox"), \
   proper_name ("Chet Ramey")
 
-/* echo [-neE] [arg ...]
-Output the ARGs.  If -n is specified, the trailing newline is
-suppressed.  If the -e option is given, interpretation of the
-following backslash-escaped characters is turned on:
-       \a      alert (bell)
-       \b      backspace
-       \c      suppress trailing newline
-       \f      form feed
-       \n      new line
-       \r      carriage return
-       \t      horizontal tab
-       \v      vertical tab
-       \\      backslash
-       \0NNN   the character whose ASCII code is NNN (octal).
-
-You can explicitly turn off the interpretation of the above characters
-on System V systems with the -E option.
-*/
-
 /* If true, interpret backslash escapes by default.  */
 #ifndef DEFAULT_ECHO_TO_XPG
 enum { DEFAULT_ECHO_TO_XPG = false };
@@ -86,7 +67,7 @@ If -e is in effect, the following sequences are recognized:\n\
   \\b     backspace\n\
 "), stdout);
       fputs (_("\
-  \\c     suppress trailing newline\n\
+  \\c     produce no further output\n\
   \\f     form feed\n\
   \\n     new line\n\
   \\r     carriage return\n\