Fix caps and highlight examples

John Gardner
2021-12-22 18:27:12 +11:00
parent 6e9b4c5248
commit 06aab0caab

@@ -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.