On 28/03/07, Apeksha Godiyal <[EMAIL PROTECTED]> wrote:
Hi,

I have been using the command stty -echo which is supposed to turn of
displaying characters. But it is not turning off the echoing of typed chars.

Example:

$ stty -echo
$ echo hi
hi
$

Here "echo hi" should not have been printed.
Is this a bug or have I not interpreted the man pages?

AFAIK it doesn't work in an interactive shell.
But it works in a script, just try something like:

#!/bin/sh
stty -echo
read

Thanks in advance,
Apeksha Godiyal

HTH
Christian
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  • stty -echo Apeksha Godiyal
    • Re: stty -echo Christian Walther

Reply via email to