On 3/27/12 12:56 PM, Matt Peterson wrote:
GDB handles Ctrl-D differently. It doesn't close the input on the first one, it waits for the second one and then exits. After the first one it acts like you typed 'quit', which asks you if you really want to quit when there's a program still running.
A variety of other programs handle Ctrl-D differently (emacs, vi, etc). They aren't simple console input programs.
Andrei