Updated SC1064 (markdown)

Vidar Holen
2018-11-05 08:33:18 +08:00
parent a1ce00ea99
commit adce4b31ae

@@ -30,4 +30,10 @@ If you are trying to do something else, look up the syntax for what you are tryi
### Exceptions:
POSIX allows the body of a function to be any compound command, e.g. `foo() for i; do :; done`. Since this usage is rare, ShellCheck requires the body to be {} (or ()). This additional structure requirement helps improve error messages and suggestions by not parsing down a path that less advanced users wouldn't expect.
POSIX allows the body of a function to be any compound command, e.g. `foo() for i; do :; done`. Since this usage is rare, ShellCheck requires the body to be {} (or ()):
foo() {
for i; do :; done
}
This additional structure requirement helps improve error messages and suggestions by not parsing down a path that less advanced users wouldn't expect.