From 168575a2020dbb182b8ded7265fd67bda66c962d Mon Sep 17 00:00:00 2001 From: koalaman Date: Mon, 31 Aug 2015 12:44:09 -0700 Subject: [PATCH] Updated SC2034 (markdown) --- SC2034.md | 2 ++ 1 file changed, 2 insertions(+) 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).