Skip to content
Joachim Ansorg edited this page Oct 31, 2022 · 3 revisions

This shell type is unknown. Use e.g. sh or bash.

Problematic code:

# shellcheck shell=zsh
export PAGER=less

Correct code:

Any supported shell on the shebang or the -s option

# shellcheck shell=sh
export PAGER=less

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 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

Related resources:

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally