-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC1068
Turiok edited this page Feb 19, 2025
·
5 revisions
Note: Removed in v0.7.2 - 2021-04-20
foo = 42foo=42Shells are space sensitive. foo=42 means to assign 42 to the variable foo. foo = 42 means to run a command named foo, and pass = as $1 and 42 as $2.
If you actually wanted to run a command named foo and provide = as the first argument, simply quote it to make ShellCheck be quiet: foo "=" 42.