Deutsch   English   Français   Italiano  
<ve0lmv$1nkmd$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.unix.shell
Subject: Re: (bash) How (really!) does the "current job" get determined?
Date: Mon, 7 Oct 2024 14:54:54 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ve0lmv$1nkmd$1@dont-email.me>
References: <vdn864$2p69n$1@news.xmission.com> <vdpgf0$bchi$1@dont-email.me>
 <slrnvg0s5f.1qk1.naddy@lorvorc.mips.inka.de> <vdvi9o$1imug$1@dont-email.me>
 <ve0hpm$2tnuv$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 07 Oct 2024 14:54:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f00d5b6e2ae7099040d0a40c8d585b3d";
	logging-data="1823437"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/mkqkqA7Av55l4TR01LPW/"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:csmnrZtBvLNxs6kOdf3X0Yr/YxQ=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <ve0hpm$2tnuv$1@news.xmission.com>
Bytes: 2102

On 07.10.2024 13:48, Kenny McCormack wrote:
> 
> What annoys me is that (in bash), most, but not all, of the job control
> related commands take either a pid or a job number.  To be clear, what
> annoys me is that they don't *all* do.  In particular, "fg" only takes a
> job number.  "disown" takes either, which is a very good thing.  Wish they
> all did.

I think that shell's job control purpose is to make job handling
simpler than using PIDs (even though PIDs are also displayed when
a background job gets started). But, yes, a consistent interface
accepting both would be a good thing [for all shell's job control
commands]. Incidentally Bolky/Korn notes: "When a command in this
section [Job Control] takes an argument called /job/, /job/ can be
a process id." - I don't know about Bash, but Kornshell at least
seems to have done it right.

Janis