You are viewing a single comment's thread. Return to all comments →
The solution
read a [[ "$a" == [yY] ]] && echo 'YES' [[ "$a" == [nN] ]] && echo 'NO' # here "$a" -eq [nN] Note that -eq is not possible here. Operand is required.
Seems like cookies are disabled on this browser, please enable them to open this website
Getting started with conditionals
You are viewing a single comment's thread. Return to all comments →
The solution