From c07b181396ca6d20b9852c448239bacc3d0baf54 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Wed, 28 Oct 2009 10:59:05 +0000 Subject: doc: improve the echo and printf help on escapes * src/printf.c (usage): Merge strings with echo.c to aid translators. Move the description for \NNN beside the other numeric escape codes. Don't mention "character" as that suggests character conversion. * src/echo.c (usage): Likewise. Also mention the \xHH escape sequence. --- src/echo.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/echo.c') diff --git a/src/echo.c b/src/echo.c index 65e8c80e4..b0cbe2294 100644 --- a/src/echo.c +++ b/src/echo.c @@ -63,19 +63,22 @@ Echo the STRING(s) to standard output.\n\ \n\ If -e is in effect, the following sequences are recognized:\n\ \n\ - \\0NNN the character whose ASCII code is NNN (octal)\n\ - \\\\ backslash\n\ - \\a alert (BEL)\n\ - \\b backspace\n\ "), stdout); fputs (_("\ - \\c produce no further output\n\ - \\e escape\n\ - \\f form feed\n\ - \\n new line\n\ - \\r carriage return\n\ - \\t horizontal tab\n\ - \\v vertical tab\n\ + \\\\ backslash\n\ + \\a alert (BEL)\n\ + \\b backspace\n\ + \\c produce no further output\n\ + \\e escape\n\ + \\f form feed\n\ + \\n new line\n\ + \\r carriage return\n\ + \\t horizontal tab\n\ + \\v vertical tab\n\ +"), stdout); + fputs (_("\ + \\0NNN byte with octal value NNN (1 to 3 digits)\n\ + \\xHH byte with hexadecimal value HH (1 to 2 digits)\n\ "), stdout); printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); emit_ancillary_info (); -- cgit v1.2.3-54-g00ecf