'==' is a bashism.  POSIX specifies only a single '='.