Displaying 3 results from an estimated 3 matches for "fcd3e7d2".
2020 Mar 28
0
[klibc:update-dash] dash: main: Only set savestatus in exitcmd
...t, we only
need to set savestatus.
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/main.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/usr/dash/main.c b/usr/dash/main.c
index fcd3e7d2..9f037173 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -339,13 +339,8 @@ exitcmd(int argc, char **argv)
if (stoppedjobs())
return 0;
- if (argc > 1) {
- int status = number(argv[1]);
-
- exitstatus = status;
- if (savestatus >= 0)
- savestatus = status;
- }
+ if (argc >...
2019 Jan 25
0
[klibc:update-dash] eval: Return status in eval functions
...esult of evalbackcmd */
int evalstring(char *, int);
union node; /* BLETCH for ansi C */
-void evaltree(union node *, int);
+int evaltree(union node *, int);
void evalbackcmd(union node *, struct backcmd *);
extern int evalskip;
diff --git a/usr/dash/main.c b/usr/dash/main.c
index 497ac160..fcd3e7d2 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -225,11 +225,13 @@ cmdloop(int top)
}
numeof++;
} else if (nflag == 0) {
+ int i;
+
job_warning = (job_warning == 2) ? 1 : 0;
numeof = 0;
- evaltree(n, 0);
+ i = evaltree(n, 0);
if (n)
- status = exitstatus;
+...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Return status in eval functions
...esult of evalbackcmd */
int evalstring(char *, int);
union node; /* BLETCH for ansi C */
-void evaltree(union node *, int);
+int evaltree(union node *, int);
void evalbackcmd(union node *, struct backcmd *);
extern int evalskip;
diff --git a/usr/dash/main.c b/usr/dash/main.c
index 497ac160..fcd3e7d2 100644
--- a/usr/dash/main.c
+++ b/usr/dash/main.c
@@ -225,11 +225,13 @@ cmdloop(int top)
}
numeof++;
} else if (nflag == 0) {
+ int i;
+
job_warning = (job_warning == 2) ? 1 : 0;
numeof = 0;
- evaltree(n, 0);
+ i = evaltree(n, 0);
if (n)
- status = exitstatus;
+...