Sujet : Re: bash/ksh differences (fg and other job control commands) (Was: (bash) How (really!) does the "current job" get determined?)
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 07. Oct 2024, 17:12:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ve119p$1paa1$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 07.10.2024 15:19, Kenny McCormack wrote:
In article <ve0lmv$1nkmd$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
...
Incidentally Bolsky/Korn notes: "When a command in this
section [Job Control] takes an argument called /job/, /job/ can be
Correction: the chapter was "Operating System - Job Control" (and not
the also existing chapter "Job Control").
a process id." - I don't know about Bash, but Kornshell at least
seems to have done it right.
FWIW, I just tested with the "ksh" on this system, and fg does accept a pid
argument.
So, yes, ksh seems to have gotten it right. Note that ksh seems to have
lots of different versions and forks, so I have no idea what exactly I was
testing.
Newer versions support ksh --version to get that information.
I'm used to type <Esc> <Ctrl-V> (in Vi-mode, with set -o vi
defined).
I assume you could test on whatever version you normally use.
The book I mentioned is old, so I expect that any ksh93 version
(and all derived versions) to behave that way. Moreover, there's
also not the typical remark about "availability in newer systems
only", so there's a good chance that it was already existing in
the ksh88 versions - I wouldn't bet on any early clone, though.
Janis