diff options
-rw-r--r-- | shell/ash.c | 3 | ||||
-rw-r--r-- | shell/hush.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index a11b1d67d..2a4c839a7 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -13824,8 +13824,7 @@ helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
13824 | static int FAST_FUNC | 13824 | static int FAST_FUNC |
13825 | historycmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | 13825 | historycmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
13826 | { | 13826 | { |
13827 | if (line_input_state) | 13827 | show_history(line_input_state); |
13828 | show_history(line_input_state); | ||
13829 | return EXIT_SUCCESS; | 13828 | return EXIT_SUCCESS; |
13830 | } | 13829 | } |
13831 | #endif | 13830 | #endif |
diff --git a/shell/hush.c b/shell/hush.c index 0a92f5da7..cab7ea5b0 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -10461,8 +10461,7 @@ static int FAST_FUNC builtin_help(char **argv UNUSED_PARAM) | |||
10461 | #if MAX_HISTORY && ENABLE_FEATURE_EDITING | 10461 | #if MAX_HISTORY && ENABLE_FEATURE_EDITING |
10462 | static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM) | 10462 | static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM) |
10463 | { | 10463 | { |
10464 | if (G.line_input_state) | 10464 | show_history(G.line_input_state); |
10465 | show_history(G.line_input_state); | ||
10466 | return EXIT_SUCCESS; | 10465 | return EXIT_SUCCESS; |
10467 | } | 10466 | } |
10468 | #endif | 10467 | #endif |