Date: Mon, 6 May 2024 23:01:16 +0900 From: Koichi Murase <myoga.mur...@gmail.com> Message-ID: <CAFLRLk_Dh9tTozY=7b6gdynad0qprn09vo3s2te87kpddwv...@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