On Mon, May 16, 2016 at 8:50 PM, Chet Ramey wrote:
> jobs don't get removed from the jobs table until the user is notified
> by the interactive shell.
Thanks, that makes perfect sense. I'll make a new thread with a better
description of the other ^C issue. It's actually not related to `jobs'
On 5/16/16 7:16 PM, Grisha Levit wrote:
> I would expect the following loop to exit after one (or maybe two)
> iterations but it runs until PIDs get recycled:
>
> |$ : & while [[ $(jobs) ]]; do :; done [1] 61589 TRACE: pid 51259:
> delete_old_job: found pid 61589 in job 0 with state 4 |
>
> The l
I would expect the following loop to exit after one (or maybe two)
iterations but it runs until PIDs get recycled:
$ : & while [[ $(jobs) ]]; do :; done
[1] 61589
TRACE: pid 51259: delete_old_job: found pid 61589 in job 0 with state 4
The loop does not terminate because jobs just keeps printing [