What is the difference the == and =~ comparison operators when used in BASH double square bracket if conditionals?
==
=~
if
The == operator performs a string comparison; =~ performs a regex comparison.
The == operator performs a string comparison; =~ performs a glob pattern comparison.
There is no =~ operator in BASH if conditionals.
The =~ operator performs a string comparison; == performs a regex comparison.