in reply to Generating EOF character on Win98

Did you hit Enter after the print line, and then press ^Z? IME, it only works at the beginning of a line. Something to do with the way the shell buffers it, I guess.