bug-bash
[Top][All Lists]
Advanced

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

Re: monitor mode (set -m), fork optimisation and background jobs


From: Chet Ramey
Subject: Re: monitor mode (set -m), fork optimisation and background jobs
Date: Tue, 26 Aug 2025 14:37:46 -0400
User-agent: Mozilla Thunderbird

On 8/26/25 2:36 PM, Grisha Levit wrote:
On Tue, Aug 26, 2025 at 12:25 PM Daniel Villeneuve
<dvilleneuve.4142@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.

Thanks for checking.

--
``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/



reply via email to

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