From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22702 invoked from network); 26 Jul 2003 00:30:41 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Jul 2003 00:30:41 -0000 Received: (qmail 21609 invoked by alias); 26 Jul 2003 00:30:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6414 Received: (qmail 21599 invoked from network); 26 Jul 2003 00:30:31 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 26 Jul 2003 00:30:31 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.27.190.146] by sunsite.dk (MessageWall 1.0.8) with SMTP; 26 Jul 2003 0:30:30 -0000 Received: from ceramic.fifi.org (mail@ceramic.fifi.org [216.27.190.147]) by tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id RAA14998; Fri, 25 Jul 2003 17:30:26 -0700 Received: from phil by ceramic.fifi.org with local (Exim 3.35 #1 (Debian)) id 19gCx7-0003jo-00; Fri, 25 Jul 2003 17:30:25 -0700 To: Skye Poier Cc: zsh-users@sunsite.dk Subject: Re: prompting References: <20030726001734.GA93544@isilon.com> Mail-Copies-To: nobody From: Philippe Troin Date: 25 Jul 2003 17:30:25 -0700 In-Reply-To: <20030726001734.GA93544@isilon.com> Message-ID: <87brviqgda.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Philippe Troin Skye Poier writes: > Second zsh question.. > What would be [a|the best] way to do a y/n prompt in a zsh function? > Single keypress would be best of course, but y is ok too > > print -n "Are you sure you want to do that? [y/n] " > then?? read -q ? Phil.