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: Robert Elz
Subject: Re: 5.3-alpha: the `jobs' builtin prints foreground dead jobs with function substitutions
Date: Tue, 07 May 2024 03:34:49 +0700

    Date:        Mon, 6 May 2024 23:01:16 +0900
    From:        Koichi Murase <myoga.murase@gmail.com>
    Message-ID:  
<CAFLRLk_Dh9tTozY=7B6gdyNAD0Qprn09vo3S2te87KPddWVT-A@mail.gmail.com>


  | Hmm, maybe you mean that a shell is free to anytime remove the
  | terminated foreground jobs from the list regardless of whether it has
  | been reported or not, and "all jobs whose ... reported" do not count
  | the foreground jobs that the shell has removed from the list
  | regardless of reporting. Is this your interpretation?

My interpretation of this would be that POSIX never expects foreground
jobs to be on the jobs list at all, so (as far as it is concerned) there
is nothing related to removing them relevant at all, nor would the jobs
command ever see one.

What an implementation chooses to do with its internal data structs is
beyond the scope of the standard, but just because someone chooses to
put foreground jobs on the jobs list doesn't mean that provisions of
POSIX which apply to jobs it expects on that list apply to anything else
which happens to be there.

kre




reply via email to

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