I\'ve been trying to compare whether two numbers in Bash are equal (and print a message if they are equal), but I\'m getting some strange error messages for this simple prog
the spaces are mandatory in the [ ] expression, so
[ ]
if [ $x == 3 ]; then
you need a sigill on variables in the [ ] tests