diff options
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/hush.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index 3a1d6f805..2d333d731 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
| @@ -587,6 +587,9 @@ static int builtin_local(char **argv) FAST_FUNC; | |||
| 587 | #if HUSH_DEBUG | 587 | #if HUSH_DEBUG |
| 588 | static int builtin_memleak(char **argv) FAST_FUNC; | 588 | static int builtin_memleak(char **argv) FAST_FUNC; |
| 589 | #endif | 589 | #endif |
| 590 | #if ENABLE_PRINTF | ||
| 591 | static int builtin_printf(char **argv) FAST_FUNC; | ||
| 592 | #endif | ||
| 590 | static int builtin_pwd(char **argv) FAST_FUNC; | 593 | static int builtin_pwd(char **argv) FAST_FUNC; |
| 591 | static int builtin_read(char **argv) FAST_FUNC; | 594 | static int builtin_read(char **argv) FAST_FUNC; |
| 592 | static int builtin_set(char **argv) FAST_FUNC; | 595 | static int builtin_set(char **argv) FAST_FUNC; |
| @@ -674,6 +677,9 @@ static const struct built_in_command bltins1[] = { | |||
| 674 | static const struct built_in_command bltins2[] = { | 677 | static const struct built_in_command bltins2[] = { |
| 675 | BLTIN("[" , builtin_test , NULL), | 678 | BLTIN("[" , builtin_test , NULL), |
| 676 | BLTIN("echo" , builtin_echo , NULL), | 679 | BLTIN("echo" , builtin_echo , NULL), |
| 680 | #if ENABLE_PRINTF | ||
| 681 | BLTIN("printf" , builtin_printf , NULL), | ||
| 682 | #endif | ||
| 677 | BLTIN("pwd" , builtin_pwd , NULL), | 683 | BLTIN("pwd" , builtin_pwd , NULL), |
| 678 | BLTIN("test" , builtin_test , NULL), | 684 | BLTIN("test" , builtin_test , NULL), |
| 679 | }; | 685 | }; |
| @@ -6917,6 +6923,13 @@ static int FAST_FUNC builtin_echo(char **argv) | |||
| 6917 | return _builtin_applet(argv, echo_main); | 6923 | return _builtin_applet(argv, echo_main); |
| 6918 | } | 6924 | } |
| 6919 | 6925 | ||
| 6926 | #if ENABLE_PRINTF | ||
| 6927 | static int FAST_FUNC builtin_printf(char **argv) | ||
| 6928 | { | ||
| 6929 | return _builtin_applet(argv, printf_main); | ||
| 6930 | } | ||
| 6931 | #endif | ||
| 6932 | |||
| 6920 | static int FAST_FUNC builtin_eval(char **argv) | 6933 | static int FAST_FUNC builtin_eval(char **argv) |
| 6921 | { | 6934 | { |
| 6922 | int rcode = EXIT_SUCCESS; | 6935 | int rcode = EXIT_SUCCESS; |
