From 0a72055b16601f2a7c9df7f7ac4b9b0bb44f50ee Mon Sep 17 00:00:00 2001 From: MechaLynx Date: Sat, 28 Oct 2017 05:30:01 +0300 Subject: [PATCH] Added warning for #1036 --- SC1072.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SC1072.md b/SC1072.md index 4fa3a3a..aaf4d39 100644 --- a/SC1072.md +++ b/SC1072.md @@ -1,3 +1,5 @@ # Unexpected .. +*Note: There is a [known bug](../../issues/1036) in the current version when [directives](../../wiki/Directive) appear within `then` clauses of `if` blocks that causes Shellcheck to report SC1072 on otherwise valid code. Avoid using directives within `then` clauses - instead place them at the top of the `if` block or another enclosing block.* + See [Parser Error](https://github.com/koalaman/shellcheck/wiki/Parser-Error).