Sujet : Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?
De : naddy (at) *nospam* mips.inka.de (Christian Weisgerber)
Groupes : comp.unix.shellDate : 12. May 2024, 10:47:16
Autres entêtes
Message-ID : <slrnv41414.1vaq.naddy@lorvorc.mips.inka.de>
References : 1 2 3
User-Agent : slrn/1.0.3 (FreeBSD)
On 2024-05-12, Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
If no job is running, a new job gets 1, otherwise new jobs are numbered
consecutively.
>
Job numbers are reused after it has notified you of termination of the
previous job. At least in Bash.
Demonstrably false:
bash$ sleep 10 &
[1] 64882
bash$ sleep 200 &
[2] 64883
bash$ sleep 300 &
[3] 64884
bash$ sleep 400 &
[4] 64885
[1] Done sleep 10
bash$ sleep 500 &
[5] 64886
bash$ sleep 600 &
[6] 64887
-- Christian "naddy" Weisgerber naddy@mips.inka.de