角括弧2個([[ 条件式 ]])の条件式でAND条件「-a」が使えない件(回避方法あり)

More than 3 years have passed since last update.

$ [[ 11 -eq 11 -a "bb" = "bb" ]]; echo $?

-bash: syntax error in conditional expression
-bash: syntax error near `-a'

怒られた。

$ [[ 11 -eq 11 && "bb" = "bb" ]]; echo $?

0

&&だといいみたい。

orも

$ [[ 11 -eq 11 -o "bb" = "ab" ]]; echo $?

-bash: syntax error in conditional expression
-bash: syntax error near `-o'

$ [[ 11 -eq 11 || "bb" = "ab" ]]; echo $?
0