I am doing integer comparison in bash (trying to see if the user is running as root), and I found two different ways of doing it:
if [ $UID == 0 ] then fi
if [ $UID -eq 0 ] then fi
I understand that there's no >= or <= in bash, only -ge and -le, so why is there a
== if there's a
Is there a difference in the way it compares both sides?