Debian Almquist shell
A small, fast POSIX shell, called dash, that Debian and Ubuntu use as /bin/sh.
In more detail
Dash implements the POSIX shell language and little else, which makes it quick to start and strict about bash-only syntax. Running a script under dash is the standard test that a script claiming to be sh really is portable. On Debian and Ubuntu, /bin/sh is a symbolic link to dash, while your interactive login shell is still bash.
Example
dash -n script.shRelated terms
- sh — The standard Unix shell name: whatever program /bin/sh points to, expected to behave as the POSIX standard describes.
- Almquist shell — A minimal POSIX shell, called ash, found as /bin/sh in BusyBox and in Alpine Linux containers.
- bashism — A bash-only feature, such as [[ ]], arrays, (( )) or process substitution, used in a script that claims to be POSIX sh.
- POSIX — A standard that describes the commands, shell and programming interface a Unix-like operating system should offer.
Taught in
- What A Shell Is, And What Bash Is — Bash Scripting & Command Line Automation
- Which Shell Am I In, And Getting Bash Five — Bash Scripting & Command Line Automation
- POSIX sh Versus Bash — Bash Scripting & Command Line Automation