From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 504 invoked from network); 26 Jul 2003 00:17:55 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Jul 2003 00:17:55 -0000 Received: (qmail 18537 invoked by alias); 26 Jul 2003 00:17:36 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6413 Received: (qmail 18484 invoked from network); 26 Jul 2003 00:17:35 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 26 Jul 2003 00:17:35 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [65.101.129.58] by sunsite.dk (MessageWall 1.0.8) with SMTP; 26 Jul 2003 0:17:34 -0000 Received: from skye by skye-2.isilon.com with local (Exim 4.14) id 19gCkg-000OLo-2c for zsh-users@sunsite.dk; Fri, 25 Jul 2003 17:17:34 -0700 Date: Fri, 25 Jul 2003 17:17:34 -0700 From: Skye Poier To: zsh-users@sunsite.dk Subject: prompting Message-ID: <20030726001734.GA93544@isilon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i 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?? Thanks! Skye