summaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-10-28 10:59:05 +0000
committerPádraig Brady <P@draigBrady.com>2009-10-28 17:01:29 +0000
commitc07b181396ca6d20b9852c448239bacc3d0baf54 (patch)
tree37ae1305812ff8bde3ceccc62db1ee2c810be17b /src/printf.c
parent2904d675a49cdd7cb2372f50592a6823106aa0f7 (diff)
downloadcoreutils-c07b181396ca6d20b9852c448239bacc3d0baf54.tar.xz
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.
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c6
1 files changed, 2 insertions, 4 deletions
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\