diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-03-31 14:43:25 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-31 14:43:25 +0200 |
commit | 34425389e09353a8dacdd6b23a62553f699c544c (patch) | |
tree | 4eb2e19685536384748e75af827deca885c9cc0a /coreutils/echo.c | |
parent | e3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff) | |
download | busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.bz2 busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.zip |
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/echo.c')
-rw-r--r-- | coreutils/echo.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/coreutils/echo.c b/coreutils/echo.c index 72e18c161..0895e2940 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -23,6 +23,27 @@ | |||
23 | * The previous version did not allow 4-digit octals. | 23 | * The previous version did not allow 4-digit octals. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | //usage:#define echo_trivial_usage | ||
27 | //usage: IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..." | ||
28 | //usage:#define echo_full_usage "\n\n" | ||
29 | //usage: "Print the specified ARGs to stdout" | ||
30 | //usage: IF_FEATURE_FANCY_ECHO( "\n" | ||
31 | //usage: "\nOptions:" | ||
32 | //usage: "\n -n Suppress trailing newline" | ||
33 | //usage: "\n -e Interpret backslash escapes (i.e., \\t=tab)" | ||
34 | //usage: "\n -E Don't interpret backslash escapes (default)" | ||
35 | //usage: ) | ||
36 | //usage: | ||
37 | //usage:#define echo_example_usage | ||
38 | //usage: "$ echo \"Erik is cool\"\n" | ||
39 | //usage: "Erik is cool\n" | ||
40 | //usage: IF_FEATURE_FANCY_ECHO("$ echo -e \"Erik\\nis\\ncool\"\n" | ||
41 | //usage: "Erik\n" | ||
42 | //usage: "is\n" | ||
43 | //usage: "cool\n" | ||
44 | //usage: "$ echo \"Erik\\nis\\ncool\"\n" | ||
45 | //usage: "Erik\\nis\\ncool\n") | ||
46 | |||
26 | #include "libbb.h" | 47 | #include "libbb.h" |
27 | 48 | ||
28 | /* This is a NOFORK applet. Be very careful! */ | 49 | /* This is a NOFORK applet. Be very careful! */ |