=
"$var"=42 if "$var"=42 then true fi
var=42 if [ "$var" = 42 ] then true fi
ShellCheck found a command name containing an unquoted equals sign =. This was likely intended as either a comparison or an assignment.
To compare two values, use e.g. [ "$var" = "42" ]
[ "$var" = "42" ]
To assign a value, use e.g. var="42"
var="42"
None, though you can quote the = to make ShellCheck ignore it: "$var=42".
"$var=42"
There was an error while loading. Please reload this page.