[..](..)you shouldn't escape
[[ -e ~/.bashrc -a \( -x /bin/dash -o -x /bin/ash \) ]]
[[ -e ~/.bashrc -a ( -x /bin/dash -o -x /bin/ash ) ]]
You don't have to -- and can't -- escape
) inside a
[[ .. ]] expression like you do in
[ .. ]. Just remove the escaping.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.