cvs commit: src/bin/sh jobs.c

[ Available lists | Index of cvs-src-old | Month of Dec 2010 | Week of 5 Dec 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Jilles Tjoelker <jilles@FreeBSD.org>
Date
5 Dec 2010 22:37:21
Subject
cvs commit: src/bin/sh jobs.c
Message-ID
201012052237.oB5MbLQ6055481@repoman.freebsd.org


[ Hide this part ]
jilles      2010-12-05 22:37:01 UTC

FreeBSD src repository

Modified files:
bin/sh jobs.c
Log:
SVN rev 216217 on 2010-12-05 22:37:01Z by jilles

sh: Improve jobs output of pipelines.

If describing the status of a pipeline, write all elements of the pipeline
and show the status of the last process (which would also end up in $?).
Only write one report per job, not one for every process that exits.

To keep some earlier behaviour, if any process started by the shell in a
foreground job terminates because of a signal, write a message about the
signal (at most one message per job, however).

Also, do not write messages about signals in the wait builtin in
non-interactive shells. Only true foreground jobs now write such messages
(for example, "Terminated").

Revision Changes Path
1.85 +83 -66 src/bin/sh/jobs.c


Elapsed time: 0.148 seconds