bug-bash
[Top][All Lists]
Advanced

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

Re: bash 4.4 messed up input with certain background processes


From: Chet Ramey
Subject: Re: bash 4.4 messed up input with certain background processes
Date: Wed, 29 Jun 2016 15:26:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

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.

I didn't look at this in any detail yet, but if you don't want the
background ssh process to read from its stdin (which is the same as the
shell's stdin), you need to use -n:

     -n      Redirects stdin from /dev/null (actually, prevents reading from
             stdin).  This must be used when ssh is run in the background.

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



reply via email to

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