Variables not used for anything are often associated with bugs, so ShellCheck warns about them. Problematic code: ``` foo=42 echo "$FOO" ``` foo appears unused in the above code. Correct code: ``` foo=42 echo "$foo" ```
Variables not used for anything are often associated with bugs, so ShellCheck warns about them.
Problematic code:
foo appears unused in the above code.
Correct code: