Article View: net.bugs
Article #252Re: Csh and stty
From: Dave Sherman
Date: Fri, 10 Aug 1984 03:47
Date: Fri, 10 Aug 1984 03:47
25 lines
1545 bytes
1545 bytes
In article <895@trwrb.UUCP> simpson@trwrb.UUCP (Scott Simpson) writes:
~|
~| Here is an interesting anamoly of the C shell and the way it
~| forks off processes. When you type "stty everything", you get what
~| you expect: the state of your terminal using the new tty driver.
~| When you type "stty everything | more", you get the (confused) old
~| terminal driver.
Sorry, that has nothing whatsoever to do with the way csh forks off
processes. You'll get the same reponse with sh. "stty" sends its
information to stderr, and by default looks on stdout to determine
what the settings are. When you type "stty | more", stty looks down
a pipe, finds no terminal there (and does its best) and puts the
information on the diagnostic output.
Incidentally, it's because stty looks on stdout and writes on stderr
that the way to find out the speed or other parameters of a user on
"ttyx" is the rather curious
stty > /dev/ttyx
Dave Sherman
Toronto
--
{allegra,cornell,decvax,ihnp4,linus,utzoo}!utcsrgv!dave
Technical Details
Message-ID:
<5024@utcsrgv.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcsrgv!daveReferences:
<895@trwrb.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utcsrgv.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcsrgv!dave From: dave@utcsrgv.UUCP (Dave Sherman) Newsgroups: net.bugs,net.unix Subject: Re: Csh and stty Message-ID: <5024@utcsrgv.UUCP> Date: Thu, 9-Aug-84 23:47:00 EDT Article-I.D.: utcsrgv.5024 Posted: Thu Aug 9 23:47:00 1984 Date-Received: Fri, 10-Aug-84 01:03:34 EDT References: <895@trwrb.UUCP> Organization: The Law Society of Upper Canada, Toronto Lines: 25