| Almquist shell | |
|---|---|
| Developer | Kenneth Almquist |
| Initial release | May 30, 1989; 36 years ago (1989-05-30) |
| Written in | C |
| Operating system | Unix-like |
| Platform | Cross-platform |
| Type | Unix shell |
| Website | www |
Almquist shell (also known asA Shell,ash andsh) is a lightweightUnix shell originally written byKenneth Almquist in the late 1980s. Initially a clone of theSystem V.4 variant of theBourne shell, it replaced the original Bourne shell in theBSD versions of Unix released in the early 1990s.
ash was first released via a posting to thecomp.sources.unixUsenet news group, approved and moderated byRich Salz on 30 May 1989. It was described as "a reimplementation of the System V shell [with] most features of that shell, plus some additions".[1]
Fast, small, and virtually compatible[citation needed] with thePOSIX standard's specification of the Unix shell, ash did not provideline editing orcommand history mechanisms, because Almquist felt that such functionality should be moved into theterminaldriver. However, modern variants support it.
The following is extracted from the ash package information fromSlackware v14:
ash (Kenneth Almquist's ash shell)
A lightweight (92K) Bourne compatible shell. Great for machines with low memory, but does not provide all the extras of shells likebash,tcsh, andzsh. Runs most shell scripts compatible with the Bourne shell. Note that underLinux, most scripts seem to use at least some bash-specific syntax. The Slackware setup scripts are a notable exception, since ash is the shell used on the install disks.NetBSD uses ash as its /bin/sh.

shMyriad forks have been produced from the original ash release.[2] These derivatives of ash are installed as the default shell (/bin/sh) onFreeBSD,NetBSD,DragonFly BSD,MINIX, and in someLinux distributions. MINIX 3.2 used the original ash version, whosetest feature differed from POSIX.[3] That version of the shell was replaced in MINIX 3.3. Android used ash untilAndroid 4.0, at which point it switched tomksh.[4]Chimera Linux uses FreeBSD's version of the ash as its default, which is quite unique in the Linux realm.[5]
| Debian Almquist shell (DASH) | |
|---|---|
Screenshot of dash running onopenSUSE Tumbleweed | |
| Developer | Herbert Xu |
| Initial release | July 15, 1997; 28 years ago (1997-07-15) |
| Stable release | 0.5.13.1 / October 13, 2025; 4 months ago (2025-10-13) |
| Written in | C |
| Operating system | Linux,Android |
| Type | Unix shell |
| License | 3-clause BSD license with mksignames underGNU GPL[6] |
| Website | gondor |
| Repository | git |
In 1997 Herbert Xu portedash from NetBSD toDebian Linux. In September 2002, with release 0.4.1, this port was renamed toDash (Debian Almquist shell). Xu's main priorities are POSIX conformance and slim implementation.[2]
Like its predecessor, Dash implements support for neitherinternationalization and localization normulti-byte character encoding (both required in POSIX).[citation needed] Line editing and history support based onGNU Readline is optional (--with-libedit).
Because of its slimness,Ubuntu decided to adopt Dash as the default/bin/sh[7][8] in October 2006 with version 6.10. The reason for using Dash is fastershell script execution,[9] especially during startup of the operating system, compared to previous versions of Debian and Ubuntu that used Bash for this purpose, althoughBash is still the default login shell for interactive use.[10]
A result of the shift is that manyshell scripts were found making use ofBash-specific functionalities ("bashisms") without properly declaring it in theshebang line.[11][12] The problem was first spotted in Ubuntu and the maintainers decided to make all the scripts comply with thePOSIX standard. The changes were later upstreamed to Debian, which eventually adopted Dash as its default/bin/sh too in Debian 6 (Squeeze), released in February 2011.[7] As a result, Debian policy was amended to allow script developers to assume a largely POSIX-compliant shell, save for the extensions merged into Dash for convenience (local,echo -n,test -a / -o).[13][14] A similar transition has happened in Slackware Linux, although its version ofash is only partially based on Dash.[2]
Ash (mainly the Dash fork) is also fairly popular inembedded Linux systems. Dash version 0.3.8-5 was incorporated intoBusyBox, the catch-all executable often employed in this area. Modern BusyBox versions support additionalBash features which are enabled in modern distributions likeAlpine Linux,Tiny Core Linux and Linux-basedrouter firmware such asOpenWrt,Tomato andDD-WRT.
checkbashisms(1) – Linux General CommandsManual from ManKier.com