mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-30 15:10:36 +00:00
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
|
||||
//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
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) {
|
||||
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
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) {
|
||||
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++;
|
||||
|
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user