Updated SC2034 (markdown)

Vidar Holen
2021-08-26 19:45:04 -07:00
parent 0c7d198e5a
commit eb0b1b7a2d

@@ -53,10 +53,17 @@ read _ last _ zip _ _ <<< "$str"
echo "$last, $zip"
```
or if you prefer to keep the names, use a directive to disable the warning:
Or optionally as a prefix for dummy variables (ShellCheck >0.7.2).
```
read _first last _email zip _lat _lng <<< "$str"
echo "$last, $zip"
```
For versions <= 0.7.2, the message can optionally be [[ignore]]d with a directive:
```sh
# shellcheck disable=SC2034 # Unused variables left for readability
read first last email zip lat lng <<< "$str"
echo "$last, $zip"
```
``