Typically, when writing self-documenting scripts, especially those used during a demonstration, I'd add a command such as: -
read -p "Press [Enter] to continue"
However, using Zsh on macOS 13.2.1 Ventura, I saw: -
read: -p: no coprocess
If I skipped the -p I saw: -
zsh: not an identifier: Press [Enter] to continue
when I actually pressed the Enter key
As ever, the internet answered my cry for help
ZSH: Read command fails within bash function "read:1: -p: no coprocess"
So now I have this: -
ibmcloud cs cluster ls
read "?Press [Enter] to continue"
No comments:
Post a Comment