SC2275 – ShellCheck Wiki

See this page on GitHub

Sitemap


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".


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