Re: [patch, libgfortran] PR46800 Handle CTRL-D correctly with STDIN

2014-03-17 Thread Janne Blomqvist
On Mon, Mar 17, 2014 at 12:50 AM, Jerry DeLisle wrote: > Hi all. > > The problem here was that when reading a value from STDIN and the user just > entered an empty entry (LF), > we would end up getting nested into a second read (via next_char) and the user > would have to press CTRL-D twice to get

[patch, libgfortran] PR46800 Handle CTRL-D correctly with STDIN

2014-03-16 Thread Jerry DeLisle
Hi all. The problem here was that when reading a value from STDIN and the user just entered an empty entry (LF), we would end up getting nested into a second read (via next_char) and the user would have to press CTRL-D twice to get out of the read. (The correct behavior is to only hit CTRL-D once