Well... assuming a b and c are shell variables, you need $a $b and $c to test the VALUE of the variables.
As in:
Code:
a=1
b=1
c=1
if [ a == b ] && [ b == c ]; then
echo true
else
echo false
fi
comes up false, but to test the value you need:
Code:
a=1
b=1
c=1
if [ $a == $b ] && [ $b == $c ]; then
echo true
else
echo false
fi
will come up true.
Note "==" is a string comparison, thus a == b is always false... If a/b/c are supposed to be numeric, then use -eq.