Debian Almquist Shell
Almquist shell
Developer(s)Kenneth Almquist
Initial releaseMay 30, 1989; 29 years ago (1989-05-30)
Written inC
Operating systemUnix-like
TypeUnix shell

Almquist shell (also known as A Shell, ash and sh) is a lightweight Unix shell originally written by Kenneth Almquist in the late 1980s. Initially a clone of the System V.4 variant of the Bourne shell, it replaced the original Bourne shell in the BSD versions of Unix released in the early 1990s.

History, Versions and Impact

ash was first released via a posting to the comp.sources.unix Usenet news group, approved and moderated by Rich 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]

The following is extracted from the ash package information from Slackware:[when?]

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 like bash, tcsh, and zsh. Runs most shell scripts compatible with the Bourne shell. Note that under Linux, 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 and Ubuntu uses ash as its /bin/sh.

Fast, small, and virtually compatible[] with the POSIX standard's specification of the Unix shell, ash did not feature line editing[clarification needed] or command history mechanisms, because Almquist felt that such functionality should be moved into the terminal driver. However, current variants support it.

Derivative versions of ash are installed as the default shell (/bin/sh) on FreeBSD, NetBSD, DragonFly BSD, MINIX, and in some Linux distributions. Android used ash until Android 4.0, at which point it switched to mksh[2].

dash: Ubuntu, Debian and POSIX compliance of Linux distributions

Debian Almquist shell (DASH)
Developer(s)Herbert Xu
Initial releaseJuly 15, 1997; 21 years ago (1997-07-15)
Written inC
Operating systemLinux, Android
TypeUnix shell

In 1997 Herbert Xu ported ash from NetBSD to Debian Linux. In September 2002, with release 0.4.1, this port was renamed to dash (Debian Almquist shell). Xu's main priorities are POSIX conformance and slim implementation.[3] Because of these two priorities it became very influential in the Linux world.


Because of its slimness, Ubuntu decided to adopt the dash as the default /bin/sh[4][5] in 2006. The reason for using dash is faster shell script execution,[6] especially during startup of the operating system, compared to previous versions of Debian and Ubuntu that used bash for this purpose, although bash is still the default login shell for interactive use.[7] Dash became the default /bin/sh in Ubuntu starting with the 6.10 release in October 2006.[8] Dash replaced ash and became the default /bin/sh in Debian 6 (Squeeze).[9]

Dash implements neither support for Internationalization and localization nor support for multi-byte character encoding.

POSIX compliance

During the transition by Ubuntu, numerous scripts making use of bash-specific functionality (but not declaring it) were discovered.[10][11] The elements understood only by bash were called bashisms. Instead of stopping the process of migration to dash, they decided to make all the scripts comply with the POSIX standard. These altered scripts went upstream and, after a while, Debian also decided to adopt the dash as its default `/bin/sh`. The dash shell thus forced first Ubuntu and later on Debian to make their shell scripts POSIX compliant.

Embedded Linux

Ash is also fairly popular in embedded Linux systems; its code was incorporated into the BusyBox catch-all executable often employed in this area, and is used in distributions like DSLinux, Alpine Linux, Tiny Core Linux and Linux-based router firmware such as OpenWrt, Tomato and DD-WRT.

See also


  1. ^ Almquist, Kenneth (May 30, 1989). Rich Salz, ed. "v19i001: A reimplementation of the System V shell, Part01/08". Usenet newsgroup, comp.sources.unix.
  2. ^ Android's shell and utilities
  3. ^
  4. ^ "Default /bin/sh shell". Debian Wiki. Retrieved 2016.
  5. ^ "Dash as /bin/sh". Ubuntu Wiki. Retrieved 2016.
  6. ^ Neal Krawetz (2011). Ubuntu: Powerful Hacks and Customizations. John Wiley & Sons. p. 178.
  7. ^ Christopher Negus; Francois Caen (2011). Ubuntu Linux Toolbox. John Wiley & Sons. p. 49.
  8. ^ Dash as /bin/sh in Ubuntu 6.10 Archived November 7, 2016, at the Wayback Machine.
  9. ^ Dash as /bin/sh Archived March 5, 2016, at the Wayback Machine.
  10. ^ Ubuntu bug #61463: script that are using bash could be broken with the new symlink Archived July 6, 2016, at the Wayback Machine.
  11. ^ Ubuntu bug #141481: dash as #!/bin/sh introduces countless incompatibilities Archived March 3, 2016, at the Wayback Machine.

External links

  This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.



Connect with defaultLogic
What We've Done
Led Digital Marketing Efforts of Top 500 e-Retailers.
Worked with Top Brands at Leading Agencies.
Successfully Managed Over $50 million in Digital Ad Spend.
Developed Strategies and Processes that Enabled Brands to Grow During an Economic Downturn.
Taught Advanced Internet Marketing Strategies at the graduate level.

Manage research, learning and skills at Create an account using LinkedIn to manage and organize your omni-channel knowledge. is like a shopping cart for information -- helping you to save, discuss and share.

  Contact Us