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 /sh.c | |
parent | bcd6177853a39d47b7c0ea75cc27653d63649afa (diff) |
Minor fixes to being a standalone shell.
-Erik
Diffstat (limited to 'sh.c')
-rw-r--r-- | sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |