Sample Header Ad - 728x90

read command in zsh throws error

15 votes
4 answers
8160 views
In zsh, running the command read -p 'erasing all directories (y/n) ?' ans, throws the error, read: -p: no coprocess But in bash, it prints a prompt. How do I do this in zsh?
Asked by user93868
Apr 24, 2015, 12:54 PM
Last activity: Mar 7, 2025, 12:57 PM