You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
koalaman edited this page Jan 14, 2017
·
1 revision
This is an unquoted HTML entity. Replace with corresponding character.
Problematic code:
foo && bar
Correct code:
foo && bar
Rationale:
There is an unquoted HTML entity, such as &, > or < (instead of &, > and <) in your code. This usually happens when copy-pasting from a web site that has mismanaged its code formatting.
You should go through the entire script and replace HTML entities with their corresponding characters.
Don't rely on ShellCheck to detect all of them. ShellCheck only warns about certain cases in certain contexts, while this issue tends to affect the entire script.
Exceptions:
If you want to run a command called amp after backgrounding another command, add a space: foo & amp;.