diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
commit | af3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch) | |
tree | 125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/echo.c | |
parent | 5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff) | |
download | busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.bz2 busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.zip |
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/echo.c')
-rw-r--r-- | coreutils/echo.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/coreutils/echo.c b/coreutils/echo.c index 1c4174559..fd0d9b780 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -9,10 +9,6 @@ | |||
9 | * | 9 | * |
10 | * Original copyright notice is retained at the end of this file. | 10 | * Original copyright notice is retained at the end of this file. |
11 | */ | 11 | */ |
12 | |||
13 | /* BB_AUDIT SUSv3 compliant -- unless configured as fancy echo. */ | ||
14 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/echo.html */ | ||
15 | |||
16 | /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) | 12 | /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) |
17 | * | 13 | * |
18 | * Because of behavioral differences, implemented configurable SUSv3 | 14 | * Because of behavioral differences, implemented configurable SUSv3 |
@@ -22,6 +18,26 @@ | |||
22 | * 2) SUSv3 specifies that octal escapes are of the form \0{#{#{#}}}. | 18 | * 2) SUSv3 specifies that octal escapes are of the form \0{#{#{#}}}. |
23 | * The previous version did not allow 4-digit octals. | 19 | * The previous version did not allow 4-digit octals. |
24 | */ | 20 | */ |
21 | //config:config ECHO | ||
22 | //config: bool "echo (basic SuSv3 version taking no options)" | ||
23 | //config: default y | ||
24 | //config: help | ||
25 | //config: echo is used to print a specified string to stdout. | ||
26 | //config: | ||
27 | //config:# this entry also appears in shell/Config.in, next to the echo builtin | ||
28 | //config:config FEATURE_FANCY_ECHO | ||
29 | //config: bool "Enable echo options (-n and -e)" | ||
30 | //config: default y | ||
31 | //config: depends on ECHO || ASH_BUILTIN_ECHO || HUSH | ||
32 | //config: help | ||
33 | //config: This adds options (-n and -e) to echo. | ||
34 | |||
35 | //applet:IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo)) | ||
36 | |||
37 | //kbuild:lib-$(CONFIG_ECHO) += echo.o | ||
38 | |||
39 | /* BB_AUDIT SUSv3 compliant -- unless configured as fancy echo. */ | ||
40 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/echo.html */ | ||
25 | 41 | ||
26 | //usage:#define echo_trivial_usage | 42 | //usage:#define echo_trivial_usage |
27 | //usage: IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..." | 43 | //usage: IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..." |