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. -- Oğuz
