zsh-users
 help / color / mirror / code / Atom feed
From: Paul Lew <paullew@cisco.com>
To: zsh-users@math.gatech.edu
Subject: How to do completion with read?
Date: Wed, 3 Nov 1999 08:52:24 -0800 (PST)	[thread overview]
Message-ID: <14368.26696.664675.141950@paullew-ultra.cisco.com> (raw)

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...


             reply	other threads:[~1999-11-03 16:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-03 16:52 Paul Lew [this message]
1999-11-03 17:10 ` Francis GALIEGUE
1999-11-03 17:18 ` Bart Schaefer
1999-11-03 18:20   ` Paul Lew
1999-11-04  8:21 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14368.26696.664675.141950@paullew-ultra.cisco.com \
    --to=paullew@cisco.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).