Minor fixes to being a standalone shell.
-Erik
This commit is contained in:
parent
bcd6177853
commit
c3f5c9c2ee
@ -204,7 +204,7 @@
|
|||||||
//Allow the shell to invoke all the compiled in BusyBox commands as if they
|
//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
|
//were shell builtins. Nice for staticly linking an emergency rescue shell
|
||||||
//amoung other thing.
|
//amoung other thing.
|
||||||
#ifdef BB_FEATURE_STANDALONE_SHELL
|
#define BB_FEATURE_STANDALONE_SHELL
|
||||||
//
|
//
|
||||||
// Enable tab completion in the shell (not yet
|
// Enable tab completion in the shell (not yet
|
||||||
// working very well -- so don't turn this on)
|
// working very well -- so don't turn this on)
|
||||||
|
2
lash.c
2
lash.c
@ -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) {
|
if (strcmp(newJob.progs[i].argv[0], a->name) == 0) {
|
||||||
int argc;
|
int argc;
|
||||||
char** argv=newJob.progs[i].argv;
|
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));
|
exit((*(a->main)) (argc, newJob.progs[i].argv));
|
||||||
}
|
}
|
||||||
a++;
|
a++;
|
||||||
|
2
sh.c
2
sh.c
@ -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) {
|
if (strcmp(newJob.progs[i].argv[0], a->name) == 0) {
|
||||||
int argc;
|
int argc;
|
||||||
char** argv=newJob.progs[i].argv;
|
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));
|
exit((*(a->main)) (argc, newJob.progs[i].argv));
|
||||||
}
|
}
|
||||||
a++;
|
a++;
|
||||||
|
@ -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) {
|
if (strcmp(newJob.progs[i].argv[0], a->name) == 0) {
|
||||||
int argc;
|
int argc;
|
||||||
char** argv=newJob.progs[i].argv;
|
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));
|
exit((*(a->main)) (argc, newJob.progs[i].argv));
|
||||||
}
|
}
|
||||||
a++;
|
a++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user