diff --git a/SC2034.md b/SC2034.md index 9c485c4..dc19100 100644 --- a/SC2034.md +++ b/SC2034.md @@ -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).