From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5933 invoked from network); 9 May 2001 09:24:13 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 May 2001 09:24:13 -0000 Received: (qmail 20723 invoked by alias); 9 May 2001 09:24:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3868 Received: (qmail 20695 invoked from network); 9 May 2001 09:24:01 -0000 Message-ID: To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: Reading without echo? In-Reply-To: Your message of "09 May 2001 10:27:12 BST." Date: Wed, 09 May 2001 10:23:28 +0100 From: Peter Stephenson John S Cooper wrote: > What's the recommended way for a zsh script to read (with prompt) a password > without having it echo'd? You need to do something like: stty -echo; read pw?'Password> '; stty echo; print There's no internal support for this (actually that's not quite true since the zftp module can read passwords, but there's no way to this from the main shell). -- Peter Stephenson Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************