bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kill sends signal to wrong process group with job control enabled


From: Chet Ramey
Subject: Re: Kill sends signal to wrong process group with job control enabled
Date: Mon, 2 Mar 2026 17:16:30 -0500
User-agent: Mozilla Thunderbird

On 3/2/26 1:18 AM, Oğuz wrote:
On Monday, March 2, 2026, Ben Ashton <ben@n0m.org> wrote:

As you can see, bash is the only one that translates $! to the PGID of the
subshell.


  I don't think that is what's going on here. It looks more like bash turns
off job control in the subshell and includes `setsid sleep 5 &' in the
subshell's process group, which makes sense.

This is one of the things that happens, yes.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]