Created SC2282 (markdown)

Vidar Holen
2020-12-30 20:20:15 -08:00
parent f3ee017cea
commit 56e33061db

27
SC2282.md Normal file

@@ -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!