From: Alan Cox Date: Fri, 15 May 2015 21:38:30 +0000 (+0100) Subject: sh: tidy ups for main.c X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4f28116bec6d56edfa9468c1b050b73b3f8a7b1c;p=FUZIX.git sh: tidy ups for main.c --- diff --git a/Applications/V7/cmd/sh/main.c b/Applications/V7/cmd/sh/main.c index 9b496044..06102c48 100644 --- a/Applications/V7/cmd/sh/main.c +++ b/Applications/V7/cmd/sh/main.c @@ -33,6 +33,7 @@ int main(int c, const char *v[]) /* initialise storage allocation */ stdsigs(); + setbrk(BRKINCR); addblok((POS) 0); @@ -44,13 +45,12 @@ int main(int c, const char *v[]) /* look for options */ dolc = options(c, v); - if (dolc < 2) { + if (dolc < 2) flags |= stdflg; - } - if ((flags & stdflg) == 0) { + + if ((flags & stdflg) == 0) dolc--; - ; - } + dolv = v + c - dolc; dolc--; @@ -93,7 +93,6 @@ int main(int c, const char *v[]) // } else { *execargs=(char *)dolv; /* for `ps' cmd */ ; } - exfile(0); done(); }