Created SC2187 (markdown)

koalaman
2016-12-10 11:15:50 -08:00
parent e312e6abb2
commit 1dc1645593

25
SC2187.md Normal file

@@ -0,0 +1,25 @@
## Ash scripts will be checked as Dash. Add '# shellcheck shell=dash' to silence.
### Problematic code:
```sh
#!/bin/ash
echo "Hello World"
```
### Correct code:
```sh
#!/bin/ash
# shellcheck shell=dash
echo "Hello World"
```
### Rationale:
ShellCheck has no first class support for `ash`, but it does support its Debian fork `dash` and defaults to this whenever `ash` is specified.
You can use a [[directive]] to let shellcheck know you're aware of this.
### Exceptions:
None.