Supported Files and Commands
Supported Shells
The following shells are well-supported by BashSupport Pro:
- POSIX
- Bash
- bats-core
- Zsh
For the following shells there’s only limited support available:
- 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 .zlogin .zlogout .zprofile .zshenv .zshrc zlogin zlogout zprofile zshenv zshrc |
Shebangs | ash 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.
- ShellCheck shell directive, e.g.
# shellcheck shell=bash
- Shebang line, e.g.
#!/bin/bash
- 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.
Supported Commands
BashSupport Pro supports variable declarations by the following commands:
var=value
, i.e. regular assignmentsdeclare
typeset
local
export
for
getopts
mapfile
printf -v
read
readarray
readonly
select
unset