bug-bash
[Top][All Lists]
Advanced

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

Re: Job-control not fully working in subshells since v4.4 ?


From: Chet Ramey
Subject: Re: Job-control not fully working in subshells since v4.4 ?
Date: Sun, 14 Jul 2019 16:40:20 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

On 7/12/19 3:06 PM, Luca Landi wrote:

> Bash Version: 5.0
> Patch Level: 7
> Release Status: release
> 
> Description:
> 
> It appears that, since ca. v4.4, job-control from within an interactive 
> subshell
> is still allowed but does not work fully because the shell won't hand over
> foreground-ness.

Bash-4.4 is where the shell started to care about whether or not it was
running in the background for the purposes of giving away the terminal
to different process groups.

Your example is a case where the shell doesn't note the right value for
the shell's own process group. Adding that seems to fix the problem.

Chet

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