bug-bash
[Top][All Lists]
Advanced

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

Re: unfinished command executed when TTY is closed


From: Greg Wooledge
Subject: Re: unfinished command executed when TTY is closed
Date: Wed, 17 Dec 2014 15:23:17 -0500
User-agent: Mutt/1.4.2.3i

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.

If I open an rxvt and type "touch this_file_should_not_exist" but do not
press Enter, and then I close the terminal using my window manager's
"Close" functionality, bash does not execute the partially-typed command.
(Verified by the absence of the file in a new window.)

This may turn out to be a bug in ssh instead of bash.  I don't know.



reply via email to

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