On 12/17/14, 4:08 PM, Steve Simmons wrote:
> 
> On Dec 17, 2014, at 3:23 PM, Greg Wooledge <wool...@eeg.ccf.org> wrote:
> 
>> On Wed, Dec 17, 2014 at 03:16:53PM -0500, Steve Simmons wrote:
>>> Advance apologies if I'm misunderstanding, but the described bug looks like 
>>> reasonable behavior to me.
>>
>> It would be more reasonable for bash (or ssh, I'm not sure at what level
>> this handling should occur) to discard the partially typed line.  Not
>> to execute it.
> 
> You're right - I'd missed the fact that the user hadn't completed typing the 
> command when the session dropped. My error.

The real question is the circumstances under which read will return EOF
without SIGHUP being delivered, and whether readline can reliably detect
those circumstances.

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

Reply via email to