Minor fixes to being a standalone shell.

-Erik
This commit is contained in:
Erik Andersen 2000-05-13 19:00:07 +00:00
parent bcd6177853
commit c3f5c9c2ee
4 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@
//Allow the shell to invoke all the compiled in BusyBox commands as if they
//were shell builtins. Nice for staticly linking an emergency rescue shell
//amoung other thing.
#ifdef BB_FEATURE_STANDALONE_SHELL
#define BB_FEATURE_STANDALONE_SHELL
//
// Enable tab completion in the shell (not yet
// working very well -- so don't turn this on)

2
lash.c
View File

@ -771,7 +771,7 @@ static int runCommand(struct job newJob, struct jobSet *jobList, int inBg)
if (strcmp(newJob.progs[i].argv[0], a->name) == 0) {
int argc;
char** argv=newJob.progs[i].argv;
for(argc=0;*argv!=NULL, argv++, argc++);
for(argc=0;*argv!=NULL; argv++, argc++);
exit((*(a->main)) (argc, newJob.progs[i].argv));
}
a++;

2
sh.c
View File

@ -771,7 +771,7 @@ static int runCommand(struct job newJob, struct jobSet *jobList, int inBg)
if (strcmp(newJob.progs[i].argv[0], a->name) == 0) {
int argc;
char** argv=newJob.progs[i].argv;
for(argc=0;*argv!=NULL, argv++, argc++);
for(argc=0;*argv!=NULL; argv++, argc++);
exit((*(a->main)) (argc, newJob.progs[i].argv));
}
a++;

View File

@ -771,7 +771,7 @@ static int runCommand(struct job newJob, struct jobSet *jobList, int inBg)
if (strcmp(newJob.progs[i].argv[0], a->name) == 0) {
int argc;
char** argv=newJob.progs[i].argv;
for(argc=0;*argv!=NULL, argv++, argc++);
for(argc=0;*argv!=NULL; argv++, argc++);
exit((*(a->main)) (argc, newJob.progs[i].argv));
}
a++;