Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?

Liste des GroupesRevenir à cu shell 
Sujet : Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.shell
Date : 12. May 2024, 03:34:43
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <v1p9s3$s8og$3@news.xmission.com>
References : 1 2
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <slrnv3vt5j.1gfp.naddy@lorvorc.mips.inka.de>,
Christian Weisgerber  <naddy@mips.inka.de> wrote:
On 2024-05-11, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>
I tried it a few times, but could not get back the #1 slot.
>
If no job is running, a new job gets 1, otherwise new jobs are
numbered consecutively.

Yeah, that seems to be it.  I wonder why...

...
As I accidentally discovered while looking at the code, csh(1) tries
to recycle smaller job IDs once it goes beyond 9.  tcsh(1) preserves
that behavior to this day.

That's weird.  I wonder why...

I offer no opinion on this, nor on the Plan 9 assertion that job
control is a poor hack and you should just open another window.

Well, certainly, having lots of windows open (and having things like
screen/tmux) is nice and is the modern way, but this is one situation where
I actually like having these other things running as jobs.  If they were in
other windows (and/or in screen/tmux windows), I'd lose track of them.

As it is, I sometimes forget they are there.

--
Politics is show business for ugly people.

Sports is politics for stupid people.

Date Sujet#  Auteur
11 May 24 * When/why does the shell (bash) (sometimes) not re-cycle job IDs?15Kenny McCormack
12 May 24 `* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?14Christian Weisgerber
12 May 24  +* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?12Lawrence D'Oliveiro
12 May 24  i+- Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?1vallor
12 May 24  i+* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?6Janis Papanagnou
12 May 24  ii+* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?4Kenny McCormack
12 May 24  iii`* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?3Janis Papanagnou
12 May 24  iii `* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?2Kenny McCormack
13 May 24  iii  `- Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?1Janis Papanagnou
12 May 24  ii`- Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?1Lawrence D'Oliveiro
12 May 24  i+- Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?1Kenny McCormack
12 May 24  i`* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?3Christian Weisgerber
12 May 24  i `* Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?2Lawrence D'Oliveiro
13 May 24  i  `- Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?1Christian Weisgerber
12 May 24  `- Re: When/why does the shell (bash) (sometimes) not re-cycle job IDs?1Kenny McCormack

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal