From c3f5c9c2eeb9b9501e54b3cee7e7bdf9f1f3110e Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Sat, 13 May 2000 19:00:07 +0000 Subject: [PATCH] Minor fixes to being a standalone shell. -Erik --- busybox.def.h | 2 +- lash.c | 2 +- sh.c | 2 +- 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 @@ //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) diff --git a/lash.c b/lash.c index 05dab9254..9d4c27a9a 100644 --- a/lash.c +++ b/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++; diff --git a/sh.c b/sh.c index 05dab9254..9d4c27a9a 100644 --- a/sh.c +++ b/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++; 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) 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.25.1