-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2187
Joachim Ansorg edited this page Nov 12, 2021
·
3 revisions
#!/bin/ash
echo "Hello World"#!/bin/ash
# shellcheck shell=dash
echo "Hello World"ShellCheck has no first class support for ash, but it does support its Debian fork dash and defaults to this whenever ash is specified.
Unfortunately, while the two are similar, they are not completely compatible. For example, ash supports echo -e but dash does not, so ShellCheck will incorrectly warn about it.
You can use a directive to let ShellCheck know you're aware of this problem.
None.