bug in tty driver?

Ron Williams ronald at hcrvx1.UUCP
Sat Sep 28 12:35:11 AEST 1985


Description:

The following combination of events seems to cause reads of a tty to return
EOF (VAX System V, Rel 2.0, Version 2; but may apply to your system as well):

1) type a character, then backspace
2) have your terminal set into raw mode, then back to canonical mode

This problem arises (for example), if I type vnews<CR>, then n^H, and vnews
decides I have no news.

Prove it:

Place the following text in a file called "foo".
	sleep 10
	: remember previous settings
	x=`stty -g`
	stty raw
	stty $x

Now type:
sh foo<CR>
x^H<no CR>
After 10 seconds, your shell will exit.  This applies to both the tty driver
and the sxt driver.
					Ron Williams
					utzoo!hcrvax!hcrvx1!ronald



More information about the Net.bugs.usg mailing list