From 4f28116bec6d56edfa9468c1b050b73b3f8a7b1c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 15 May 2015 22:38:30 +0100 Subject: [PATCH] sh: tidy ups for main.c --- Applications/V7/cmd/sh/main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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(); } -- 2.34.1