diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/echo.c | 25 | ||||
-rw-r--r-- | src/printf.c | 6 |
2 files changed, 16 insertions, 15 deletions
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 (); diff --git a/src/printf.c b/src/printf.c index 540d7db3f..c0badd1de 100644 --- a/src/printf.c +++ b/src/printf.c @@ -102,23 +102,21 @@ Print ARGUMENT(s) according to FORMAT, or execute according to OPTION:\n\ FORMAT controls the output as in C printf. Interpreted sequences are:\n\ \n\ \\\" double quote\n\ - \\NNN character with octal value NNN (1 to 3 digits)\n\ - \\\\ backslash\n\ "), stdout); fputs (_("\ + \\\\ backslash\n\ \\a alert (BEL)\n\ \\b backspace\n\ \\c produce no further output\n\ \\e escape\n\ \\f form feed\n\ -"), stdout); - fputs (_("\ \\n new line\n\ \\r carriage return\n\ \\t horizontal tab\n\ \\v vertical tab\n\ "), stdout); fputs (_("\ + \\NNN byte with octal value NNN (1 to 3 digits)\n\ \\xHH byte with hexadecimal value HH (1 to 2 digits)\n\ \\uHHHH Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits)\n\ \\UHHHHHHHH Unicode character with hex value HHHHHHHH (8 digits)\n\ |