On 3/2/26 1:18 AM, Oğuz wrote:
On Monday, March 2, 2026, Ben Ashton <[email protected]> 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 [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
