From fa9e5d05a31b6b5a545aef6dfa6c8c67a3f578cd Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 5 Dec 2010 22:56:46 +0000 Subject: [PATCH] sh: POSIX says there should not be a space between Done and (exitstatus). (On the other hand, (core dumped) does need a space and so does [1] +.) --- bin/sh/jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index 60f979525e35..a761f2896b11 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -354,7 +354,7 @@ showjob(struct job *jp, int mode) if (WEXITSTATUS(ps->status) == 0) strcpy(statestr, "Done"); else - fmtstr(statestr, 64, "Done (%d)", + fmtstr(statestr, 64, "Done(%d)", WEXITSTATUS(ps->status)); } else { i = WTERMSIG(ps->status);