diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index c6f64e202..27e097a99 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -9251,7 +9251,6 @@ typecmd(int argc UNUSED_PARAM, char **argv) | |||
9251 | return err; | 9251 | return err; |
9252 | } | 9252 | } |
9253 | 9253 | ||
9254 | #if ENABLE_ASH_CMDCMD | ||
9255 | static struct strlist * | 9254 | static struct strlist * |
9256 | fill_arglist(struct arglist *arglist, union node **argpp) | 9255 | fill_arglist(struct arglist *arglist, union node **argpp) |
9257 | { | 9256 | { |
@@ -9268,6 +9267,7 @@ fill_arglist(struct arglist *arglist, union node **argpp) | |||
9268 | return *lastp; | 9267 | return *lastp; |
9269 | } | 9268 | } |
9270 | 9269 | ||
9270 | #if ENABLE_ASH_CMDCMD | ||
9271 | /* Is it "command [-p] PROG ARGS" bltin, no other opts? Return ptr to "PROG" if yes */ | 9271 | /* Is it "command [-p] PROG ARGS" bltin, no other opts? Return ptr to "PROG" if yes */ |
9272 | static int | 9272 | static int |
9273 | parse_command_args(struct arglist *arglist, union node **argpp, const char **path) | 9273 | parse_command_args(struct arglist *arglist, union node **argpp, const char **path) |
@@ -10882,11 +10882,13 @@ evalcommand(union node *cmd, int flags) | |||
10882 | vlocal = !spclbltin; | 10882 | vlocal = !spclbltin; |
10883 | } | 10883 | } |
10884 | cmd_is_exec = cmdentry.u.cmd == EXECCMD; | 10884 | cmd_is_exec = cmdentry.u.cmd == EXECCMD; |
10885 | #if ENABLE_ASH_CMDCMD | ||
10885 | if (cmdentry.u.cmd != COMMANDCMD) | 10886 | if (cmdentry.u.cmd != COMMANDCMD) |
10886 | break; | 10887 | break; |
10887 | 10888 | ||
10888 | cmd_flag = parse_command_args(&arglist, &argp, &path); | 10889 | cmd_flag = parse_command_args(&arglist, &argp, &path); |
10889 | if (!cmd_flag) | 10890 | if (!cmd_flag) |
10891 | #endif | ||
10890 | break; | 10892 | break; |
10891 | } | 10893 | } |
10892 | 10894 | ||
@@ -14574,8 +14576,7 @@ helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
14574 | static int FAST_FUNC | 14576 | static int FAST_FUNC |
14575 | historycmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | 14577 | historycmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
14576 | { | 14578 | { |
14577 | if (line_input_state) | 14579 | show_history(line_input_state); |
14578 | show_history(line_input_state); | ||
14579 | return EXIT_SUCCESS; | 14580 | return EXIT_SUCCESS; |
14580 | } | 14581 | } |
14581 | #endif | 14582 | #endif |