diff --git a/SC1010.md b/SC1010.md index 3c6f7ba..d022d1e 100644 --- a/SC1010.md +++ b/SC1010.md @@ -4,24 +4,24 @@ ### Problematic code: -``` +```sh for f in *; do echo "$f" done ``` or -``` +```sh echo $f is done ``` ### Correct code: -``` +```sh for f in *; do echo "$f"; done ``` or -``` +```sh echo "$f is done" ``` @@ -34,4 +34,4 @@ In the example, `echo "$f" done` is the same as `echo "$f" "done"`, and the `don ### Exceptions -If you're intentionally using `done` as a literal, you can quote it to make this clear to shellcheck (and also human readers), e.g. instead of `echo Task is done`, use `echo "Task is done"`. This makes no difference to the shell, but it will silence this warning. +If you're intentionally using `done` as a literal, you can quote it to make this clear to ShellCheck (and also human readers), e.g. instead of `echo Task is done`, use `echo "Task is done"`. This makes no difference to the shell, but it will silence this warning.