Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 469 Bytes

SC1029.md

File metadata and controls

23 lines (14 loc) · 469 Bytes

Pattern: Escaped ( or ) in [[..]]

Issue: -

Description

You don't have to ( or ) inside a [[ .. ]] expression like you do in [ .. ]. Just remove the escaping.

Example of incorrect code:

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

Example of correct code:

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

Further Reading