4.2bsd eof flag in stdio

Chris Torek chris at umcp-cs.UUCP
Mon Nov 26 22:28:43 AEST 1984


Doug Gwyn seems to be complaining because 4.2's "sticky EOF" will make
things like

	% cat -u
	foo^D

exit.  Not true!  If you type

	% cat -u
	foo
	^D

(assuming ^D is your EOF character) *then* cat will exit, but for the
former, it will print "foo" and keep reading.  One more ^D (unless
preceded by other text) will cause it to terminate.
-- 
(This line accidently left nonblank.)

In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.unix.wizards mailing list