From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24571 invoked from network); 3 Nov 1999 17:10:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Nov 1999 17:10:59 -0000 Received: (qmail 20555 invoked by alias); 3 Nov 1999 17:10:41 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2718 Received: (qmail 20546 invoked from network); 3 Nov 1999 17:10:36 -0000 Sender: fg@mandrakesoft.com To: zsh-users@math.gatech.edu Subject: Re: How to do completion with read? References: <14368.26696.664675.141950@paullew-ultra.cisco.com> From: Francis GALIEGUE Date: 03 Nov 1999 18:10:32 +0100 In-Reply-To: Paul Lew's message of "Wed, 3 Nov 1999 08:52:24 -0800 (PST)" Message-ID: X-Mailer: Gnus v5.7/Emacs 20.4 Paul Lew writes: > Is there a way to use completion mechanism when prompt user for input > in zsh function/scripts? For example, > > echo -n "Enter choice: " > read -C '-k "(orange apple banana)"' choice > > The example about use imaginary option '-C' which tell zsh to pass the > next argument as compctl argument. > > Any help will be appreciated... > You can use select for this, although it does not do completion. -- fg # rm *;o o: command not found