Re: bash 4.4 messed up input with certain background processes

2016-06-30 Thread Chet Ramey
On 6/29/16 11:22 PM, Grisha Levit wrote: > Thanks, the -n option does work around this. > I was very surprised to see input going to a backgrounded process You shouldn't be. When job control is active, bash doesn't modify the standard input of any background process it starts, in case the job ge

Re: bash 4.4 messed up input with certain background processes

2016-06-29 Thread Grisha Levit
Thanks, the -n option does work around this. I was very surprised to see input going to a backgrounded process but it seems that it is actually being stolen by the ssh control master process, which is not under bash's control.

Re: bash 4.4 messed up input with certain background processes

2016-06-29 Thread Chet Ramey
On 6/29/16 1:39 PM, Grisha Levit wrote: > The observed condition is input getting split between the shell and the > background process. I couldn’t figure out what the general case is to > trigger this, but I can observe it when an ssh process with an open unix > socket is placed in the background.

bash 4.4 messed up input with certain background processes

2016-06-29 Thread Grisha Levit
The observed condition is input getting split between the shell and the background process. I couldn’t figure out what the general case is to trigger this, but I can observe it when an ssh process with an open unix socket is placed in the background. Below is my recipe to reproduce. First step is