From 56e33061dbe6dbc0f70fddc7440b782dfa8ffc01 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 30 Dec 2020 20:20:15 -0800 Subject: [PATCH] Created SC2282 (markdown) --- SC2282.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 SC2282.md diff --git a/SC2282.md b/SC2282.md new file mode 100644 index 0000000..0d94ad3 --- /dev/null +++ b/SC2282.md @@ -0,0 +1,27 @@ +## Variable names can't start with numbers, so this is interpreted as a command. + +### Problematic code: + +```sh +411toppm=true +``` + +### Correct code: + +```sh +_411toppm=true +``` + +### Rationale: + +You appear to be assigning to a variable name that starts with a digit. This is not allowed: variables must start with A-Z, a-z or _. + +Switch to a variable name that does not start with a digit. + +### Exceptions: + +None + +### Related resources: + +* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! \ No newline at end of file