From 774a6bc9514fc21bc9bc0834c56eadebb4e8366f Mon Sep 17 00:00:00 2001 From: Martin Bagge / brother Date: Sun, 30 Oct 2022 19:35:20 +0100 Subject: [PATCH] Created SC1103 (markdown) --- SC1103.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 SC1103.md diff --git a/SC1103.md b/SC1103.md new file mode 100644 index 0000000..9094f4b --- /dev/null +++ b/SC1103.md @@ -0,0 +1,30 @@ +## This shell type is unknown. Use e.g. sh or bash. + +### Problematic code: + +```sh +#!/bin/zsh +``` + +### Correct code: + +Any supported shell on the shebang or the `-s` option + +```sh +#!/bin/sh +``` + +### Rationale: + +Shellcheck only supports a specific range of shell dialects, there are many more applications providing shell like experiences and some of them look and feel like POSIX shell or bash but does not support the same commands. + +One notable unsupported shell type is zsh, see issue [#809](https://github.com/koalaman/shellcheck/issues/809) about supporting zsh - some efforts have been done in the past. + +### Exceptions: + +The supported shell types are listed in the help context, at the moment these are + +* sh +* bash +* dash +* ksh \ No newline at end of file