read -p 'set_color green; echo -n "$prompt Do you like to succeed? [Y/n]: "; set_color normal' -l confirm switch $confirm case Y y '' command case N n return 1
So, I imagined ''
would allow us to press the Enter
key and accept that as a yes.
And it does not. The documentation says sadly nothing about default values for reads.
How could I make this to accept a default input?