bug-bash
[Top][All Lists]
Advanced

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

Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with funct


From: Chet Ramey
Subject: Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with function substitutions
Date: Mon, 29 Apr 2024 16:07:26 -0400
User-agent: Mozilla Thunderbird

On 4/27/24 5:15 PM, Koichi Murase wrote:
I'm currently testing my framework with 5.3-alpha. In 5.3-alpha and
the devel branch, foreground dead jobs are reported by the `jobs'
builtin with function substitutions:

OK, let's explore this again. POSIX says `jobs' should report on

"the status of all background jobs, both running and suspended, and all
jobs whose status has changed and have not been reported by the shell."

So the question is what exactly constitutes a foreground job whose status
has "not been reported." Does that exempt terminated foreground jobs whose
status would not be reported when the shell reaps jobs before printing
$PS1? That would be jobs that exited normally or jobs that exited due to
a signal we don't report on (SIGINT, possibly SIGPIPE, in interactive
shells). Or is it jobs that have changed status and the shell hasn't yet
determined whether it will notify the user about them?

--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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