Skip to content
Joachim Ansorg edited this page Nov 12, 2021 · 2 revisions

Command name starts with =. Bad line break?

Problematic code:

my_variable
  =value

Correct code:

myvariable=value

Rationale:

ShellCheck found a command name starting with a =. This was likely not meant as a new command, but instead a continuation from a previous line.

Make sure the = is used correctly.

Exceptions:

None, though you can quote the value to make ShellCheck ignore it, e.g. "=foo".

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 guerraart8 to find a specific , or see Checks.

Clone this wiki locally