As far as I can see, in most shell versions the expressions
if [ x = y ]
and
if [ x == y ]
have the same meaning.
Also, I saw, that there are versions, that don't allow ==, only =.
So is it true, that I can always use = instead of ==?
As far as I can see, in most shell versions the expressions
if [ x = y ]
and
if [ x == y ]
have the same meaning.
Also, I saw, that there are versions, that don't allow ==, only =.
So is it true, that I can always use = instead of ==?
 
    
    