mardi 18 septembre 2018

The conditional check is not being executed it just prints the echo statement for legit input [duplicate]

This question already has an answer here:

read a
if [[ $a != 'A' || $a != 'a']] && [[ $a != 'B' || $a != 'b' ]] && [[ $a !='C' || $a != 'c']]; then 
       echo "ABC only"
fi

Aucun commentaire:

Enregistrer un commentaire