What is the difference between =
and ==
to compare strings in Linux shell programming?
Maybe the following code works:
if [ \"$
These pages explain the various comparison operators in bash:
On the second linked page, you will find:
==
is equal to
if [ "$a" == "$b" ]
This is a synonym for =.