SC1029
koalaman edited this page Jun 3, 2017
·
1 revision
In [[..]] you shouldn't escape ( or ).
Problematic code:
[[ -e ~/.bashrc -a \( -x /bin/dash -o -x /bin/ash \) ]]Correct code:
[[ -e ~/.bashrc -a ( -x /bin/dash -o -x /bin/ash ) ]]Rationale:
You don't have to -- and can't -- escape ( or ) inside a [[ .. ]] expression like you do in [ .. ]. Just remove the escaping.
Exceptions:
None.