bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] silent job monitor when 'set +m'


From: Chet Ramey
Subject: Re: [PATCH] silent job monitor when 'set +m'
Date: Sat, 07 Nov 2009 16:25:24 -0500
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Jeff Chua wrote:
> 
> Chet,
> 
> The man page mentioned that 'set -m' should print 'a line containing
> their status upon their completion' ... which should imply 'set +m'
> should NOT print the status.

I'm confused about the circumstances you used to trigger this behavior,
since the code fragment you modified is never executed by an interactive
shell, and non-interactive shells don't have job control enabled by
default.  Are you saying you ran a script in which you enabled job
control, ran a job, turned job control off, then killed the job?

Bash and historical versions of sh report the status of jobs in a script
that exit as the result of being killed by a signal.  I'm not going to
change that.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]