Csh and stty

Dave Sherman dave at utcsrgv.UUCP
Fri Aug 10 13:47:00 AEST 1984


In article <895 at trwrb.UUCP> simpson at 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



More information about the Net.bugs mailing list