diff --git a/SC1029.md b/SC1029.md index def9a7f..37c8a5c 100644 --- a/SC1029.md +++ b/SC1029.md @@ -3,13 +3,13 @@ ### Problematic code: ```sh -[[ -e ~/.bashrc -a \( -x /bin/dash -o -x /bin/ash \) ]] +[[ -e ~/.bashrc && \( -x /bin/dash || -x /bin/ash \) ]] ``` ### Correct code: ```sh -[[ -e ~/.bashrc -a ( -x /bin/dash -o -x /bin/ash ) ]] +[[ -e ~/.bashrc && ( -x /bin/dash || -x /bin/ash ) ]] ``` ### Rationale: