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