Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utah-gr.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!zehntel!hplabs!hao!seismo!utah-cs!utah-gr!thomas From: thomas@utah-gr.UUCP (Spencer W. Thomas) Newsgroups: net.unix-wizards Subject: Re: Re: 4.2bsd eof flag in stdio Message-ID: <1258@utah-gr.UUCP> Date: Fri, 30-Nov-84 14:04:31 EST Article-I.D.: utah-gr.1258 Posted: Fri Nov 30 14:04:31 1984 Date-Received: Tue, 4-Dec-84 05:10:48 EST References: <127@ISM780B.UUCP> <266@rlgvax.UUCP> Reply-To: thomas@utah-gr.UUCP (Spencer W. Thomas) Organization: Univ of Utah CS Dept Lines: 18 Summary: In article <266@rlgvax.UUCP> guy@rlgvax.UUCP (Guy Harris) writes: >It isn't just the nature of UNIX terminals. Some DEC OSes use the same >behavior; EDT terminates input mode with a ^Z, their EOF character. >Actually, quoting the VMS manuals, "CTRL/Z - Echoes ^Z when CTRL/Z is >typed as a *read terminator*. *By convention*, CTRL/Z constitutes >end-of-file." This implies (although it may not be the case) that ^Z >works in VMS exactly like ^D does in UNIX. Well, I don't know about VMS, but in TOPS-20, if you type ^Z, you see the EOF, even if you type it in the middle of the line (unlike ^D on Unix). Personally, no matter what the manual says about "terminating input" on ^D, and so on, I find that it is very confusing to naive users that they must SOMETIMES type ^D twice, but other times, typing it once suffices. Just because you have gotten used to the behaviour, doesn't mean it's right. =Spencer