From cf783591923888277ea88cad194ee4d7aaa42272 Mon Sep 17 00:00:00 2001 From: John Gardner Date: Wed, 22 Dec 2021 19:25:29 +1100 Subject: [PATCH] Link mention of `SC1034` to its wiki page --- SC1033.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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!