Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site hcrvx1.UUCP
Path: utzoo!hcrvax!hcrvx1!ronald
From: ronald@hcrvx1.UUCP (Ron Williams)
Newsgroups: net.bugs.usg
Subject: bug in tty driver?
Message-ID: <1251@hcrvx1.UUCP>
Date: Fri, 27-Sep-85 22:35:11 EDT
Article-I.D.: hcrvx1.1251
Posted: Fri Sep 27 22:35:11 1985
Date-Received: Sat, 28-Sep-85 00:58:27 EDT
Organization: Human Computing Resources, Toronto
Lines: 27
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, 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
x^H
After 10 seconds, your shell will exit. This applies to both the tty driver
and the sxt driver.
Ron Williams
utzoo!hcrvax!hcrvx1!ronald