mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2034 (markdown)
@@ -14,6 +14,8 @@
|
||||
|
||||
Variables not used for anything are often associated with bugs, so ShellCheck warns about them.
|
||||
|
||||
Also note that something like `local let foo=42` does not make a `let` statement local -- it instead declares an additional local variable named `let`.
|
||||
|
||||
### Exceptions
|
||||
|
||||
ShellCheck may not always realize that the variable is in use (especially with indirection), and may not realize you don't care (with throwaway variables or unimplemented features).
|
||||
|
Reference in New Issue
Block a user