In bash, I don't understand why the 3rd command isn't true:
[[ 1 -eq 1 ]] # $? is 0
[[ ! 1 -eq 1 ]] # $? is 1
[[ ! ! 1 -eq 1 ]] # $? is 1 (??)
[[ ! ( ! 1 -eq 1 ) ]] # $? is 0
It seems to do the same thing if I replace 1 -eq 1 with any true expression, and negate with any false expression.