From: Benno Schulenberg Date: Fri, 8 Aug 2008 21:15:52 +0000 (+0200) Subject: echo: correct description of \c X-Git-Tag: v7.0~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ee3d2430add2b84efa1dee4a406e8c30d203fc3;p=thirdparty%2Fcoreutils.git echo: correct description of \c * src/echo.c (usage): Correct description of \c. * coreutils.texi (echo invocation): Likewise. * src/echo.c: Remove --help-duplicating comment. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index b044d0c667..cfd283d801 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -10394,7 +10394,7 @@ alert (bell) @item \b backspace @item \c -suppress trailing newline +produce no further output @item \f form feed @item \n diff --git a/src/echo.c b/src/echo.c index 21213bf1f3..8a6466ea8a 100644 --- a/src/echo.c +++ b/src/echo.c @@ -28,25 +28,6 @@ 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\