From 1dc1645593c4b56dbb8bf91689fe010bf9c389fe Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 10 Dec 2016 11:15:50 -0800 Subject: [PATCH] Created SC2187 (markdown) --- SC2187.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 SC2187.md diff --git a/SC2187.md b/SC2187.md new file mode 100644 index 0000000..ec1e5a2 --- /dev/null +++ b/SC2187.md @@ -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. \ No newline at end of file