From 10c7aade4f0d9b27e55841eb0cf861ca8d30beaf Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Tue, 17 Aug 2021 14:13:42 -0700 Subject: [PATCH] Updated SC2153 (markdown) --- SC2153.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SC2153.md b/SC2153.md index f1c2eff..55ef42f 100644 --- a/SC2153.md +++ b/SC2153.md @@ -1,4 +1,4 @@ -## Possible Misspelling: MYVARIABLE may not be assigned, but MY_VARIABLE is. +## Possible Misspelling: MYVARIABLE may not be assigned. Did you mean MY_VARIABLE? ### Problematic code: @@ -16,9 +16,9 @@ echo "$MY_VARIABLE" ### Rationale: -ShellCheck has noticed that you reference a variable that is not assigned in the script, which has a name remarkably similar to one that is explicitly assigned. You should verify that the variable name is spelled correctly. +ShellCheck has noticed that you reference a variable that is not assigned in the script, but which has a name similar to another known variable. You should verify that the variable name is spelled correctly. -Note: This error only triggers for environment variables (all uppercase variables), and only when they have names similar to something assigned in the script. If the variable is script-local, it should by convention have a lowercase name, and will in that case be caught by [SC2154] whether or not it resembles another name. +Note: This error only triggers for environment variables (all uppercase variables), and only when they have names similar to another known variable in the script. If the variable is script-local, it should by convention have a lowercase name, and will in that case be caught by [SC2154] whether or not it resembles another name. ### Exceptions: