Skip to content
Vidar Holen edited this page Dec 31, 2020 · 1 revision

Variable names can't start with numbers, so this is interpreted as a command.

Problematic code:

411toppm=true

Correct code:

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

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally