aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 1d421dc38..7cebe1784 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -850,6 +850,9 @@ static int builtin_jobs(char **argv) FAST_FUNC;
850#if ENABLE_HUSH_HELP 850#if ENABLE_HUSH_HELP
851static int builtin_help(char **argv) FAST_FUNC; 851static int builtin_help(char **argv) FAST_FUNC;
852#endif 852#endif
853#if MAX_HISTORY
854static int builtin_history(char **argv) FAST_FUNC;
855#endif
853#if ENABLE_HUSH_LOCAL 856#if ENABLE_HUSH_LOCAL
854static int builtin_local(char **argv) FAST_FUNC; 857static int builtin_local(char **argv) FAST_FUNC;
855#endif 858#endif
@@ -919,6 +922,9 @@ static const struct built_in_command bltins1[] = {
919#if ENABLE_HUSH_HELP 922#if ENABLE_HUSH_HELP
920 BLTIN("help" , builtin_help , NULL), 923 BLTIN("help" , builtin_help , NULL),
921#endif 924#endif
925#if MAX_HISTORY
926 BLTIN("history" , builtin_history , "Show command history"),
927#endif
922#if ENABLE_HUSH_JOB 928#if ENABLE_HUSH_JOB
923 BLTIN("jobs" , builtin_jobs , "List jobs"), 929 BLTIN("jobs" , builtin_jobs , "List jobs"),
924#endif 930#endif
@@ -8627,6 +8633,14 @@ static int FAST_FUNC builtin_help(char **argv UNUSED_PARAM)
8627} 8633}
8628#endif 8634#endif
8629 8635
8636#if MAX_HISTORY
8637static int FAST_FUNC builtin_history(char **argv UNUSED_PARAM)
8638{
8639 show_history(G.line_input_state);
8640 return EXIT_SUCCESS;
8641}
8642#endif
8643
8630#if ENABLE_HUSH_JOB 8644#if ENABLE_HUSH_JOB
8631static int FAST_FUNC builtin_jobs(char **argv UNUSED_PARAM) 8645static int FAST_FUNC builtin_jobs(char **argv UNUSED_PARAM)
8632{ 8646{