I have a problem with this while loop. I want the user to pick one of the three options. I get the error "integer expression expected". When i remove the last option "$UCHOICE" -ne "q", the program works until i type a letter, and i get the same "integer expression expected". I am guessing that the problem has to do with integers and strings but i have no clue. please help.
while [ "$UCHOICE" -ne "1" -a "$UCHOICE" -ne "2" -a "$UCHOICE" -ne "q" ]
do
echo "hello"
read UCHOICE
done