-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2148
koalaman edited this page Nov 1, 2014
·
15 revisions
echo "Hello World"
#!/bin/sh
echo "Hello World"
ShellCheck warns about different things for different shells. It uses the shebang to determine which shell to warn for. For the command line client, this can be overridden with -s
, e.g. shellcheck -s sh file
.
If you don't specify the shell type in any way, ShellCheck assumes a default and gives this message.
None. Just specify the shell type, either in a shebang or as a cli flag.