bug-bash
[Top][All Lists]
Advanced

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

Re: Parent shell gets stopped when a child shell is created with job con


From: Chet Ramey
Subject: Re: Parent shell gets stopped when a child shell is created with job control but not interactive (bash -mc)
Date: Sun, 02 Mar 2014 18:09:40 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 2/28/14, 12:00 PM, Eduardo A. Bustamante López wrote:
> This works fine:
> 
> dualbus@debian:~$ ~/local/bin/bash -s <<< 'for i in . .; do (~/local/bin/bash 
> -mic ": & wait") ; done'
> [1] 1629
> [1]+  Done                    :
> [1] 1631
> [1]+  Done                    :
> 
> -----
> This does not:
> 
> dualbus@debian:~$ ~/local/bin/bash -s <<< 'for i in . .; do (~/local/bin/bash 
> -mc ": & wait") ; done'
> [1]+  Done                    :
> 
> [1]+  Stopped                 ~/local/bin/bash -s <<< 'for i in . .; do 
> (~/local/bin/bash -mc ": & wait") ; done'
> 

Thanks for the report.  Pointing out the behavior difference between the
first case (using -i) and the second (without) was the key.  Here's a
patch.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

Attachment: jobs-exit.patch
Description: Text Data


reply via email to

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