Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site dalcs.UUCP
Path: utzoo!linus!decvax!dartvax!dalcs!burgess
From: burgess@dalcs.UUCP (Chris Burgess)
Newsgroups: net.bugs
Subject: Re: Csh and stty
Message-ID: <1228@dalcs.UUCP>
Date: Wed, 8-Aug-84 19:14:40 EDT
Article-I.D.: dalcs.1228
Posted: Wed Aug  8 19:14:40 1984
Date-Received: Fri, 10-Aug-84 07:45:14 EDT
References: <895@trwrb.UUCP>
Organization: Dalhousie U, Halifax N.S.
Lines: 10

The reason why stty appears confused is because stty does ioctl's
on file descriptor 1 which is standard output for your terminal.
If you try to pipe the output through more it does the ioctl's on
file descriptor 1 again, but csh redefines it to the pipe going
into more. The result being that stty is trying to find out the
terminal characteristics of the pipe rather than the terminal.
This feature is useful when you want to get or set the attributes
of another device e.g. "stty everything > /dev/ttyd0" will give
you the characteristics of ttyd0 rather than sending yours as
output to ttyd0.