SC2282 – ShellCheck Wiki

See this page on GitHub

Sitemap


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


ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.