Supported Files and Commands

Supported Shells

The following shells are well-supported by BashSupport Pro:

  • POSIX
  • Bash
  • bats-core

For the following shells there’s only limited support available:

  • Zsh
  • Dash
  • Almquist shell
  • Kornshell
  • MirBSD Korn Shell

Files Associated with BashSupport Pro

The following extensions, filenames and shebang lines are mapped to BashSupport Pro.

For the listed shebang commands, absolute paths to the shebang commands (e.g. /usr/bin/bash) and the env command (e.g. /usr/bin/env bash) are supported.

Extensions*.bash *.bats *.dash *.sh *.zsh
Filenames.bash_aliases .bash_logout .bash_profile .bashrc .profile
Shebangsash bash bats dash ksh ksh88 ksh93 mksh sh zsh @sh@ @shell@

BashSupport Pro detects the type of shell script files in the following order, the first valid match is used.

  1. ShellCheck shell directive, e.g. # shellcheck shell=bash
  2. Shebang line, e.g. #!/bin/bash
  3. File extension, e.g. .bash

If no match or only an unsupported match is found, then a warning is displayed, along with a quickfix to insert a ShellCheck directive.

Quickfix to insert a ShellCheck shell directive
Quickfix to insert a ShellCheck shell directive

Supported Commands

BashSupport Pro supports variable declarations by the following commands:

  • var=value, i.e. regular assignments
  • declare
  • export
  • for
  • getopts
  • local
  • mapfile
  • printf -v
  • read
  • readarray
  • readonly
  • select
  • unset
© 2020–2022 Joachim Ansorg
Правовая информация
Политика конфиденциальности
Юридическая информация