From owner-freebsd-questions@FreeBSD.ORG Wed Mar 28 13:17:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 10E5916A405 for ; Wed, 28 Mar 2007 13:17:13 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 9A9BC13C448 for ; Wed, 28 Mar 2007 13:17:12 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so3305051nfc for ; Wed, 28 Mar 2007 06:17:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EViaJHQiX2F6+i5VPP5w5JC4XooNc3zO/2uBAnsxAlXXDCZ8HTQB4z3fIvlzI++WMMoKqNNlFpDZMVpx0JPAin8SYYJjNZyjxapXBW2SyDpfxOZdMCDqwgJ/7pDXoHS602Ws03wW7MuhJY79WyCAcSG8idZUSIXzc8drihmhQck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S0sPyeX2FwJpWhI4iD8p60tnwXYhxxME66q14Zg05z1w5Po6yspf20yVKqnREFq80s1CuyMkOJtPx0clSuEv/XkuUriMc0V4uEFecG+nMpCEIQkZU0UV+K/bdwcsK6p7LRxmYjRQEVPjCgd2uwTm3mDkHtbCFk9UOoxcmaP1/iQ= Received: by 10.82.136.4 with SMTP id j4mr18860722bud.1175087831039; Wed, 28 Mar 2007 06:17:11 -0700 (PDT) Received: by 10.82.153.6 with HTTP; Wed, 28 Mar 2007 06:17:11 -0700 (PDT) Message-ID: <14989d6e0703280617w6d836d1fhb2dce468c02259d4@mail.gmail.com> Date: Wed, 28 Mar 2007 15:17:11 +0200 From: "Christian Walther" To: "Apeksha Godiyal" In-Reply-To: <8e1be510703280534h2e0d5169s5fb6c5ba38de1526@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8e1be510703280534h2e0d5169s5fb6c5ba38de1526@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: stty -echo X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2007 13:17:13 -0000 On 28/03/07, Apeksha Godiyal 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