diff options
-rw-r--r-- | shell/hush.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/hush.c b/shell/hush.c index 7cebe1784..1a2603e3b 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -850,7 +850,7 @@ static int builtin_jobs(char **argv) FAST_FUNC; | |||
850 | #if ENABLE_HUSH_HELP | 850 | #if ENABLE_HUSH_HELP |
851 | static int builtin_help(char **argv) FAST_FUNC; | 851 | static int builtin_help(char **argv) FAST_FUNC; |
852 | #endif | 852 | #endif |
853 | #if MAX_HISTORY | 853 | #if MAX_HISTORY && ENABLE_FEATURE_EDITING |
854 | static int builtin_history(char **argv) FAST_FUNC; | 854 | static int builtin_history(char **argv) FAST_FUNC; |
855 | #endif | 855 | #endif |
856 | #if ENABLE_HUSH_LOCAL | 856 | #if ENABLE_HUSH_LOCAL |
@@ -922,7 +922,7 @@ static const struct built_in_command bltins1[] = { | |||
922 | #if ENABLE_HUSH_HELP | 922 | #if ENABLE_HUSH_HELP |
923 | BLTIN("help" , builtin_help , NULL), | 923 | BLTIN("help" , builtin_help , NULL), |
924 | #endif | 924 | #endif |
925 | #if MAX_HISTORY | 925 | #if MAX_HISTORY && ENABLE_FEATURE_EDITING |
926 | BLTIN("history" , builtin_history , "Show command history"), | 926 | BLTIN("history" , builtin_history , "Show command history"), |
927 | #endif | 927 | #endif |
928 | #if ENABLE_HUSH_JOB | 928 | #if ENABLE_HUSH_JOB |
@@ -8633,7 +8633,7 @@ static int FAST_FUNC builtin_help(char **argv UNUSED_PARAM) | |||
8633 | } | 8633 | } |
8634 | #endif | 8634 | #endif |
8635 | 8635 | ||
8636 | #if MAX_HISTORY | 8636 | #if MAX_HISTORY && ENABLE_FEATURE_EDITING |
8637 | static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM) | 8637 | static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM) |
8638 | { | 8638 | { |
8639 | show_history(G.line_input_state); | 8639 | show_history(G.line_input_state); |