diff options
author | Matt Kraai <kraai@debian.org> | 2001-08-01 17:21:35 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-08-01 17:21:35 +0000 |
commit | 2d91deba45d5a284614e06cc55e2be03599ca26d (patch) | |
tree | 0ba0d2096b4305465ddea8532a5931cb4c02b343 /shell | |
parent | 00344431402703089c6b93f6119f9966cc7ba566 (diff) | |
download | busybox-w32-2d91deba45d5a284614e06cc55e2be03599ca26d.tar.gz busybox-w32-2d91deba45d5a284614e06cc55e2be03599ca26d.tar.bz2 busybox-w32-2d91deba45d5a284614e06cc55e2be03599ca26d.zip |
Allow multiple shells to be enabled.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 | ||||
-rw-r--r-- | shell/hush.c | 8 | ||||
-rw-r--r-- | shell/lash.c | 2 | ||||
-rw-r--r-- | shell/msh.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/shell/ash.c b/shell/ash.c index 15e1adb7c..b1aec6278 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -7638,7 +7638,7 @@ static void procargs (int, char **); | |||
7638 | */ | 7638 | */ |
7639 | 7639 | ||
7640 | int | 7640 | int |
7641 | shell_main(argc, argv) | 7641 | ash_main(argc, argv) |
7642 | int argc; | 7642 | int argc; |
7643 | char **argv; | 7643 | char **argv; |
7644 | { | 7644 | { |
@@ -12874,7 +12874,7 @@ findvar(struct var **vpp, const char *name) | |||
12874 | /* | 12874 | /* |
12875 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> | 12875 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> |
12876 | * This file contains code for the times builtin. | 12876 | * This file contains code for the times builtin. |
12877 | * $Id: ash.c,v 1.15 2001/07/31 21:38:23 andersen Exp $ | 12877 | * $Id: ash.c,v 1.16 2001/08/01 17:21:33 kraai Exp $ |
12878 | */ | 12878 | */ |
12879 | static int timescmd (int argc, char **argv) | 12879 | static int timescmd (int argc, char **argv) |
12880 | { | 12880 | { |
diff --git a/shell/hush.c b/shell/hush.c index 134404251..0e619f80e 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -112,7 +112,7 @@ | |||
112 | #else | 112 | #else |
113 | #define applet_name "hush" | 113 | #define applet_name "hush" |
114 | #include "standalone.h" | 114 | #include "standalone.h" |
115 | #define shell_main main | 115 | #define hush_main main |
116 | #undef BB_FEATURE_SH_FANCY_PROMPT | 116 | #undef BB_FEATURE_SH_FANCY_PROMPT |
117 | #endif | 117 | #endif |
118 | 118 | ||
@@ -2562,7 +2562,7 @@ static void setup_job_control() | |||
2562 | tcsetpgrp(shell_terminal, shell_pgrp); | 2562 | tcsetpgrp(shell_terminal, shell_pgrp); |
2563 | } | 2563 | } |
2564 | 2564 | ||
2565 | int shell_main(int argc, char **argv) | 2565 | int hush_main(int argc, char **argv) |
2566 | { | 2566 | { |
2567 | int opt; | 2567 | int opt; |
2568 | FILE *input; | 2568 | FILE *input; |
@@ -2572,8 +2572,8 @@ int shell_main(int argc, char **argv) | |||
2572 | global_argc = argc; | 2572 | global_argc = argc; |
2573 | global_argv = argv; | 2573 | global_argv = argv; |
2574 | 2574 | ||
2575 | /* (re?) initialize globals. Sometimes shell_main() ends up calling | 2575 | /* (re?) initialize globals. Sometimes hush_main() ends up calling |
2576 | * shell_main(), therefore we cannot rely on the BSS to zero out this | 2576 | * hush_main(), therefore we cannot rely on the BSS to zero out this |
2577 | * stuff. Reset these to 0 every time. */ | 2577 | * stuff. Reset these to 0 every time. */ |
2578 | ifs = NULL; | 2578 | ifs = NULL; |
2579 | /* map[] is taken care of with call to update_ifs_map() */ | 2579 | /* map[] is taken care of with call to update_ifs_map() */ |
diff --git a/shell/lash.c b/shell/lash.c index 8f8609534..0af669116 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -1545,7 +1545,7 @@ static void setup_job_control() | |||
1545 | tcsetpgrp(shell_terminal, shell_pgrp); | 1545 | tcsetpgrp(shell_terminal, shell_pgrp); |
1546 | } | 1546 | } |
1547 | 1547 | ||
1548 | int shell_main(int argc_l, char **argv_l) | 1548 | int lash_main(int argc_l, char **argv_l) |
1549 | { | 1549 | { |
1550 | int opt, interactive=FALSE; | 1550 | int opt, interactive=FALSE; |
1551 | FILE *input = stdin; | 1551 | FILE *input = stdin; |
diff --git a/shell/msh.c b/shell/msh.c index 8f046e794..92a0f8536 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -143,7 +143,7 @@ static int newfile(char *s); | |||
143 | static char *findeq(char *cp); | 143 | static char *findeq(char *cp); |
144 | static char *cclass(char *p, int sub); | 144 | static char *cclass(char *p, int sub); |
145 | static void initarea(void); | 145 | static void initarea(void); |
146 | extern int shell_main(int argc, char **argv); | 146 | extern int msh_main(int argc, char **argv); |
147 | 147 | ||
148 | 148 | ||
149 | struct brkcon { | 149 | struct brkcon { |
@@ -692,7 +692,7 @@ static char * current_prompt; | |||
692 | */ | 692 | */ |
693 | 693 | ||
694 | 694 | ||
695 | extern int shell_main(int argc, char **argv) | 695 | extern int msh_main(int argc, char **argv) |
696 | { | 696 | { |
697 | register int f; | 697 | register int f; |
698 | register char *s; | 698 | register char *s; |