Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: prompting



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