diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-13 19:00:07 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-13 19:00:07 +0000 |
commit | c3f5c9c2eeb9b9501e54b3cee7e7bdf9f1f3110e (patch) | |
tree | 3255def9849b0c1bc83e2e0aa80ac731151fad9c | |
parent | bcd6177853a39d47b7c0ea75cc27653d63649afa (diff) | |
download | busybox-w32-c3f5c9c2eeb9b9501e54b3cee7e7bdf9f1f3110e.tar.gz busybox-w32-c3f5c9c2eeb9b9501e54b3cee7e7bdf9f1f3110e.tar.bz2 busybox-w32-c3f5c9c2eeb9b9501e54b3cee7e7bdf9f1f3110e.zip |
Minor fixes to being a standalone shell.
-Erik
-rw-r--r-- | busybox.def.h | 2 | ||||
-rw-r--r-- | lash.c | 2 | ||||
-rw-r--r-- | sh.c | 2 | ||||
-rw-r--r-- | shell/lash.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/busybox.def.h b/busybox.def.h index 296c7f94a..430671d52 100644 --- a/busybox.def.h +++ b/busybox.def.h | |||
@@ -204,7 +204,7 @@ | |||
204 | //Allow the shell to invoke all the compiled in BusyBox commands as if they | 204 | //Allow the shell to invoke all the compiled in BusyBox commands as if they |
205 | //were shell builtins. Nice for staticly linking an emergency rescue shell | 205 | //were shell builtins. Nice for staticly linking an emergency rescue shell |
206 | //amoung other thing. | 206 | //amoung other thing. |
207 | #ifdef BB_FEATURE_STANDALONE_SHELL | 207 | #define BB_FEATURE_STANDALONE_SHELL |
208 | // | 208 | // |
209 | // Enable tab completion in the shell (not yet | 209 | // Enable tab completion in the shell (not yet |
210 | // working very well -- so don't turn this on) | 210 | // working very well -- so don't turn this on) |
@@ -771,7 +771,7 @@ static int runCommand(struct job newJob, struct jobSet *jobList, int inBg) | |||
771 | if (strcmp(newJob.progs[i].argv[0], a->name) == 0) { | 771 | if (strcmp(newJob.progs[i].argv[0], a->name) == 0) { |
772 | int argc; | 772 | int argc; |
773 | char** argv=newJob.progs[i].argv; | 773 | char** argv=newJob.progs[i].argv; |
774 | for(argc=0;*argv!=NULL, argv++, argc++); | 774 | for(argc=0;*argv!=NULL; argv++, argc++); |
775 | exit((*(a->main)) (argc, newJob.progs[i].argv)); | 775 | exit((*(a->main)) (argc, newJob.progs[i].argv)); |
776 | } | 776 | } |
777 | a++; | 777 | a++; |
@@ -771,7 +771,7 @@ static int runCommand(struct job newJob, struct jobSet *jobList, int inBg) | |||
771 | if (strcmp(newJob.progs[i].argv[0], a->name) == 0) { | 771 | if (strcmp(newJob.progs[i].argv[0], a->name) == 0) { |
772 | int argc; | 772 | int argc; |
773 | char** argv=newJob.progs[i].argv; | 773 | char** argv=newJob.progs[i].argv; |
774 | for(argc=0;*argv!=NULL, argv++, argc++); | 774 | for(argc=0;*argv!=NULL; argv++, argc++); |
775 | exit((*(a->main)) (argc, newJob.progs[i].argv)); | 775 | exit((*(a->main)) (argc, newJob.progs[i].argv)); |
776 | } | 776 | } |
777 | a++; | 777 | a++; |
diff --git a/shell/lash.c b/shell/lash.c index 05dab9254..9d4c27a9a 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -771,7 +771,7 @@ static int runCommand(struct job newJob, struct jobSet *jobList, int inBg) | |||
771 | if (strcmp(newJob.progs[i].argv[0], a->name) == 0) { | 771 | if (strcmp(newJob.progs[i].argv[0], a->name) == 0) { |
772 | int argc; | 772 | int argc; |
773 | char** argv=newJob.progs[i].argv; | 773 | char** argv=newJob.progs[i].argv; |
774 | for(argc=0;*argv!=NULL, argv++, argc++); | 774 | for(argc=0;*argv!=NULL; argv++, argc++); |
775 | exit((*(a->main)) (argc, newJob.progs[i].argv)); | 775 | exit((*(a->main)) (argc, newJob.progs[i].argv)); |
776 | } | 776 | } |
777 | a++; | 777 | a++; |