-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2288
Vidar Holen edited this page Jun 6, 2021
·
1 revision
(also applies to multiple other characters like .,([{<>}])#"'
)
var=$("wget 'http://www.shellcheck.net/'")
echo Usage: $0 {start|stop|restart}
array=val1, val2, val3
var="$(wget 'http://www.shellcheck.net/')"
echo "Usage: $0 {start|stop|restart}"
array=(val1 val2 val3)
ShellCheck found a command name ending with a symbol, such as a comma, parenthesis, quote, or similar. This is almost always due to a syntax issue in the script.
In the examples, bad quoting and invalid array syntax caused the shell to try to run commands ending in apostrophe, curly brace, and comma, respectively.
If you have a command that does end in a symbol, you can ignore this message.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!