bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix foreground dead jobs in trap handlers reported like back


From: Chet Ramey
Subject: Re: [PATCH] Fix foreground dead jobs in trap handlers reported like background ones in `jobs'
Date: Mon, 10 Oct 2022 09:47:24 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

On 10/8/22 9:09 AM, Koichi Murase wrote:
Thank you for your reply and sorry for the late reply.

2022年10月4日(火) 0:56 Chet Ramey <chet.ramey@case.edu>:
I expect the same behavior of `f1' and `f2' as far as there are no
background jobs.

Why? f2 calls `jobs', and so requests information in a particular format,
which may or may not be the same format as the default (compact) format
bash uses when it reports job status before printing a prompt.

My point is *not* about the format of the output of `jobs', but
whether `jobs' should print the entries of foreground dead jobs, to
begin with.

Yes. I believe that `jobs' should print the status of jobs that the shell
would otherwise notify the user about. This includes foreground jobs that
are killed by a signal other than SIGINT/SIGPIPE.

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




reply via email to

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