Re: unfinished command executed when TTY is closed

2014-12-21 Thread Chet Ramey
On 12/18/14 12:14 PM, Jiri Kukacka wrote: >> OK, this is the problem part. This looks like a bug in Solaris. >> There's >> no indication that the kernel sent SIGHUP before changing the behavior >> of >> read and write upon disconnect. >> >> Can you see whether or not the first bash in the chain

bash bug with read -s command

2014-12-21 Thread Richard W. Marsden
steps to produce hide cursor setterm -cursor off call the bash built-in read command as follows: silent, wait 1 second, read 1 character to variable KEY read -s -t 1 -n 1 KEY while the read command is in a loop, control + c is trapped successfully and the cursor is un-hidden setterm