| i think i found the answer to his problem....
1) On UNIX systems, when stdin is redirected from a terminal, Ctrl-D is
interpreted as EOF only when it is issued at the beginning of the line.
Otherwise, it is interpreted literally. Did you issue Ctrl-D immediately
after the prompt?
2) On Windows systems, when stdin is redirected to the keyboard, Ctrl-Z
marks EOF only when followed by ENTER. Have you hit ENTER after Ctrl-Z? |