`==` is not part of `[` (aka `test`). It is a bashism and works because bash implements `test` as a builtin. Equality is checked with a single `=`