Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: prompting
- X-seq: zsh-users 6414
- From: Philippe Troin <phil@xxxxxxxx>
- To: Skye Poier <skye@xxxxxxxxxx>
- Subject: Re: prompting
- Date: 25 Jul 2003 17:30:25 -0700
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20030726001734.GA93544@xxxxxxxxxx>
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030726001734.GA93544@xxxxxxxxxx>
- Sender: Philippe Troin <phil@xxxxxxxx>
Skye Poier <skye@xxxxxxxxxx> 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<cr> is ok too
>
> print -n "Are you sure you want to do that? [y/n] "
> then??
read -q ?
Phil.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author