On Tue, Aug 26, 2025 at 12:25 PM Daniel Villeneuve <dvilleneuve.4...@gmail.com> wrote: > > When using the following command from an interactive shell: > > bash -c "sleep 1001 & sleep 1002 & set -m; sleep 1003" > > the sleep 1003 command ends up in its own process group, which also includes > the other two sleep commands. ... > From GNU bash, version 5.1.8(1)-release (x86_64-redhat-linux-gnu) on RHEL 9.
This is fixed in bash 5.3. PID PPID PGID TTY COMMAND 42009 42008 42009 ttys008 -bash 84246 42009 84246 ttys008 bash-5.3 -c sleep 1001 & sleep 1002 & set -m; sleep 1003 84247 84246 84246 ttys008 sleep 1001 84248 84246 84246 ttys008 sleep 1002 84249 84246 84249 ttys008 sleep 1003