stty -echo
Christian Walther
cptsalek at gmail.com
Wed Mar 28 13:17:13 UTC 2007
On 28/03/07, Apeksha Godiyal <apeksha.godiyal at gmail.com> 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
More information about the freebsd-questions
mailing list