mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Updated SC1064 (markdown)
@@ -30,7 +30,7 @@ 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 ()):
|
||||
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 intentionally requires the body to be `{ ..; }` (or `( ..; )`):
|
||||
|
||||
foo() {
|
||||
for i; do :; done
|
||||
|
Reference in New Issue
Block a user