diff --git a/SC1033.md b/SC1033.md index f4529eb..5122bf7 100644 --- a/SC1033.md +++ b/SC1033.md @@ -1,6 +1,6 @@ ## Test expression was opened with double `[[` but closed with single `]`. Make sure they match. -(or SC1034 for vice versa) +(or [[SC1034]] for vice versa) ### Problematic code: @@ -13,6 +13,7 @@ ```sh [[ -z "$var" ]] ``` + ### Rationale: ShellCheck found a test expression `[ ... ]` (POSIX) or `[[ ... ]]` (ksh/bash), but where the opening and closing brackets did not match (i.e. `[[ .. ]` or `[ .. ]]`). The brackets need to match up to work. @@ -39,4 +40,4 @@ None ### Related resources: -* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! \ No newline at end of file +* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!