> 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?
No, I will check it ASAP. > 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? Yes, it das not work. Thanks for the ather tips, as a complete beginner I'm bound to the class text book, at least when they see the programes ;-) Jeff _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://linuxclub.il.eu.org) To unsub send an empty message to [EMAIL PROTECTED]