Shell

Shell

Made by DeepSource

Can't escape ( or ) inside [[..]] SH-1029

Anti-pattern
Major

You don't have to -- and can't -- escape ( or ) inside a [[ .. ]] expression like you do in [ .. ]. It is recommended remove the escaping.

Problematic code:

[[ -e ~/.bashrc -a \( -x /bin/dash -o -x /bin/ash \) ]]

Correct code:

[[ -e ~/.bashrc -a ( -x /bin/dash -o -x /bin/ash ) ]]