Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to do completion with read?
- X-seq: zsh-users 2717
- From: Paul Lew <paullew@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: How to do completion with read?
- Date: Wed, 3 Nov 1999 08:52:24 -0800 (PST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
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...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author