summaryrefslogtreecommitdiffstats
path: root/bin/sh/jobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/jobs.c')
-rw-r--r--bin/sh/jobs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index 2adcafe..814e4f2 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -353,7 +353,11 @@ showjob(struct job *jp, int sformat, int lformat)
} else if (ps->status == -1) {
strcpy(s, "Running");
} else if (WIFEXITED(ps->status)) {
- fmtstr(s, 64, "Exit %d", WEXITSTATUS(ps->status));
+ if (WEXITSTATUS(ps->status) == 0)
+ strcpy(s, "Done");
+ else
+ fmtstr(s, 64, "Done (%d)",
+ WEXITSTATUS(ps->status));
} else {
#if JOBS
if (WIFSTOPPED(ps->status))
OpenPOWER on IntegriCloud