From 6ccf9d6af1e3bfa1189ea8a1f8d1fd3515e25b7c Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 27 Apr 2019 17:25:20 -0700 Subject: [PATCH] Mention in manual that 'sh' means POSIX and not system --- shellcheck.1.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/shellcheck.1.md b/shellcheck.1.md index 92235f9..1cec34f 100644 --- a/shellcheck.1.md +++ b/shellcheck.1.md @@ -75,18 +75,19 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts. directory, as in `-P SCRIPTDIR` or `-P SCRIPTDIR/../libs`. Subsequent `-P` flags accumulate and take predecence. +**-s**\ *shell*,\ **--shell=***shell* + +: Specify Bourne shell dialect. Valid values are *sh*, *bash*, *dash* and *ksh*. + The default is to deduce the shell from the file's `shell` directive, + shebang, or `.bash/.bats/.dash/.ksh` extension, in that order. *sh* refers to + POSIX `sh` (not the system's), and will warn of portability issues. + **-S**\ *SEVERITY*,\ **--severity=***severity* : Specify minimum severity of errors to consider. Valid values in order of severity are *error*, *warning*, *info*, *style* and *verbose*. The default is *style*. -**-s**\ *shell*,\ **--shell=***shell* - -: Specify Bourne shell dialect. Valid values are *sh*, *bash*, *dash* and *ksh*. - The default is to deduce the shell from the file's `shell` directive, - shebang, or `.bash/.bats/.dash/.ksh` extension, in that order. - **-V**,\ **--version** : Print version information and exit.