Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hp-pcd!hpfcso!hpfcdc!georg From: georg@hpfcdc.HP.COM (Geri Georg) Newsgroups: comp.sys.hp Subject: Re: echo problems on 9k825 Message-ID: <5570489@hpfcdc.HP.COM> Date: 20 Sep 90 18:51:12 GMT References: <673@giaea.gi.oz> Organization: HP Fort Collins, Co. Lines: 22 You can't turn off echoing in the HP-UX csh. The reason is two-fold. When csh is getting input, it turns off echoing and canonical processing. It then inputs characters one at a time, and does things like file expansion where necessary, depending on the character input. If the character is a regular character, it is then echoed "manually" by being output again to the standard output device by csh. Once the command is input, csh turns on echoing and canonical processing. So csh not only echos data back out (regardless of the tty setting), but it also turns on echoing in the tty setting. The reason the tty setting is reset to turn on echoing and canonical processing appears to be in order to recover in the case where a program terminates abnormally (or I guess normally but without restoring the tty) and leaves the tty in a basically unusable state. Resetting echoing and canonical processing avoids this problem. But as a result of the tty being reset by csh, there is no way to figure out if the user really wanted to turn off echoing, so there is no check that can be made in order to turn off the "manual" echoing which is done by csh. Geri Georg Hewlett-Packard