At this question in the answer from Kyle Brandt the [[ ]] construct is described as a "bash built-in test command". The following is shown as an example.
if [[ ( $a -gt 2 ) && ( $a -lt 5 ) ]]; then ... Why are double square brackets, literally [[ ]], necessary?