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 c...@case.edu http://tiswww.cwru.edu/~chet/