Decisions with unexpected results
if [ false ]
then
echo true
else
echo false
fi
if [[ false ]]
then
echo true
else
echo false
fi
if [[ false -eq true ]]
then
echo true
else
echo false
fi
All decisions return true when logically they should return false!
Why?