Date: Wed, 28 Mar 2007 15:17:11 +0200 From: "Christian Walther" <cptsalek@gmail.com> To: "Apeksha Godiyal" <apeksha.godiyal@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: stty -echo Message-ID: <14989d6e0703280617w6d836d1fhb2dce468c02259d4@mail.gmail.com> In-Reply-To: <8e1be510703280534h2e0d5169s5fb6c5ba38de1526@mail.gmail.com> References: <8e1be510703280534h2e0d5169s5fb6c5ba38de1526@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28/03/07, Apeksha Godiyal <apeksha.godiyal@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14989d6e0703280617w6d836d1fhb2dce468c02259d4>