Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15167

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

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Job-control not fully working in subshells since v4.4 ?
Date 2019-07-14 16:40 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.1331.1563136830.2688.bug-bash@gnu.org> (permalink)
References <2044D16D-43CF-4A35-AE4A-C17DE7700A87@gif.it> <a405f795-0297-bc77-95cc-c89e32eb5edc@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Job-control not fully working in subshells since v4.4 ? Chet Ramey <chet.ramey@case.edu> - 2019-07-14 16:40 -0400

csiph-web