<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Almquist_shell</id>
	<title>Almquist shell - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Almquist_shell"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Almquist_shell&amp;action=history"/>
	<updated>2026-12-01T16:59:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Almquist_shell&amp;diff=123205&amp;oldid=prev</id>
		<title>imported&gt;MichielN: /* Dash */ 0.5.13.5</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Almquist_shell&amp;diff=123205&amp;oldid=prev"/>
		<updated>2026-10-05T18:24:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Dash: &lt;/span&gt; 0.5.13.5&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Lightweight Unix shell}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name                   = Almquist shell&lt;br /&gt;
| logo                   =&lt;br /&gt;
| screenshot             = Almquist shell (ash) screenshot on Linux.webp&lt;br /&gt;
| caption                = Screenshot of [[NetBSD]] &amp;lt;code&amp;gt;ash&amp;lt;/code&amp;gt; running on [[openSUSE]] Tumbleweed&lt;br /&gt;
| developer              = Kenneth Almquist&lt;br /&gt;
| released               = {{Start date and age|1989|05|30}}&lt;br /&gt;
| latest release version =&lt;br /&gt;
| latest release date    =&lt;br /&gt;
| programming language   = [[C (programming language)|C]]&lt;br /&gt;
| operating system       = [[Unix-like]]&lt;br /&gt;
| platform               = [[Cross-platform]]&lt;br /&gt;
| genre                  = [[Unix shell]]&lt;br /&gt;
| license                =&lt;br /&gt;
| website                = &lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Almquist shell&amp;#039;&amp;#039;&amp;#039; (also known as &amp;#039;&amp;#039;&amp;#039;A Shell&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ash&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;sh&amp;#039;&amp;#039;&amp;#039;) is a lightweight [[Unix shell]] originally written by [[Kenneth Almquist]] in the late 1980s. Initially a clone of the [[SVR4|System V.4]] variant of the [[Bourne shell]], it replaced the original Bourne shell in the [[Berkeley Software Distribution|BSD]] versions of Unix released in the early 1990s.&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
ash was first released via a posting to the {{mono|[[comp.* hierarchy|comp]].sources.unix}} [[Usenet]] news group, approved and moderated by [[Rich Salz]] on 30 May 1989. It was described as &amp;quot;a reimplementation of the System V shell [with] most features of that shell, plus some additions&amp;quot;.&amp;lt;ref&amp;gt;{{Cite web| title=v19i001: A reimplementation of the System V shell, Part01/08 | url=https://groups.google.com/d/topic/comp.sources.unix/A6cnyKX-Gq4/discussion | date=May 30, 1989 | editor=Rich Salz | editor-link=Rich Salz | author=Almquist, Kenneth | publisher=[[Usenet]] newsgroup, comp.sources.unix}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fast, small, and virtually compatible{{citation needed|date=February 2016}} with the [[POSIX]] standard&amp;#039;s specification of the Unix shell, ash did not provide [[Line editor|line editing]] or [[command history]] mechanisms, because Almquist felt that such functionality should be moved into the [[Computer terminal|terminal]] [[Device driver|driver]]. However, modern variants support it.&lt;br /&gt;
&lt;br /&gt;
The following is extracted from the ash package information from [[Slackware]] v14:&lt;br /&gt;
&lt;br /&gt;
{{Blockquote|&amp;lt;p&amp;gt;ash (Kenneth Almquist&amp;#039;s ash shell)&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;A lightweight (92K) Bourne compatible shell. Great for machines with low memory, but does not provide all the extras of shells like [[Bash (Unix shell)|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]] uses ash as its /bin/sh.&amp;lt;/p&amp;gt;}}&lt;br /&gt;
[[File:Chimera Linux with default shell (FreeBSD ash) screenshot.webp|alt=Screenshot of Chimera Linux with FreeBSD ash, showing the system information and some Unix commands|thumb|[[Chimera Linux]] with FreeBSD &amp;lt;code&amp;gt;sh&amp;lt;/code&amp;gt;]]&lt;br /&gt;
Myriad forks have been produced from the original ash release.&amp;lt;ref name=vars&amp;gt;{{cite web |last1=Mascheck |first1=Sven |title=Ash (Almquist Shell) Variants&lt;br /&gt;
 |url=https://www.in-ulm.de/~mascheck/various/ash/ |website=www.in-ulm.de}}&amp;lt;/ref&amp;gt; These derivatives of ash are installed as the default shell (&amp;lt;code&amp;gt;/bin/sh&amp;lt;/code&amp;gt;) on [[FreeBSD]]&amp;lt;ref&amp;gt;{{Cite web |title=sh(1) |url=https://man.freebsd.org/cgi/man.cgi?query=sh&amp;amp;sektion=1 |access-date=2026-07-15 |website=man.freebsd.org}}&amp;lt;/ref&amp;gt;, [[NetBSD]]&amp;lt;ref&amp;gt;{{Cite web |title=sh(1) - NetBSD Manual Pages |url=https://man.netbsd.org/NetBSD-10.1/sh.1 |access-date=2026-07-15 |website=man.netbsd.org}}&amp;lt;/ref&amp;gt;, [[DragonFly BSD]]&amp;lt;ref&amp;gt;{{Cite web |title=DragonFlyBSD: UnixBasics |url=https://www.dragonflybsd.org/docs/handbook/UnixBasics/#index4h2 |access-date=2026-07-15 |website=www.dragonflybsd.org}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |title=DragonFly On-Line Manual Pages : sh(1) |url=https://man.dragonflybsd.org/?command=sh&amp;amp;section=1 |access-date=2026-07-15 |website=man.dragonflybsd.org}}&amp;lt;/ref&amp;gt;, [[MINIX]]&amp;lt;ref name=&amp;quot;vars&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;, and in some [[Linux distribution]]s, such as Alpine Linux&amp;lt;ref&amp;gt;{{Cite web |title=Alpine Linux Notes - Dr. Mike Murphy |url=https://ww2.coastal.edu/mmurphy2/teaching/courses/fa22/csci427/alpine-notes/ |access-date=2026-07-15 |website=ww2.coastal.edu}}&amp;lt;/ref&amp;gt;. MINIX 3.2 used the original ash version, whose [[test (Unix)|test]] feature differed from POSIX.&amp;lt;ref&amp;gt;{{cite web |url=https://invisible-island.net/autoconf/portability-test.html |title=TEST versus Portability |author=Thomas E. Dickey |year=2015 |access-date=March 1, 2020}}&amp;lt;/ref&amp;gt;  That version of the shell was replaced in MINIX 3.3. Android used ash until [[Android Ice Cream Sandwich|Android 4.0]], at which point it switched to [[mksh]].&amp;lt;ref&amp;gt;{{cite web&lt;br /&gt;
| url=https://android.googlesource.com/platform/system/core/+/master/shell_and_utilities/README.md&lt;br /&gt;
| title=Android&amp;#039;s shell and utilities&lt;br /&gt;
| author=Elliott Hughes&lt;br /&gt;
| date=2018-06-20&lt;br /&gt;
| access-date=2020-02-29}}&amp;lt;/ref&amp;gt; [[Chimera Linux]] uses FreeBSD&amp;#039;s version of the ash as its default, which is quite unique in the Linux realm.&amp;lt;ref&amp;gt;{{Cite web|url=https://github.com/chimera-linux/chimerautils/blob/master/src.freebsd/sh/TOUR|title=chimerautils/src.freebsd/sh/TOUR at master · chimera-linux/chimerautils|website=GitHub}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;span class=&amp;quot;anchor&amp;quot; id=&amp;quot;dash&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Dash ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Debian Almquist shell (DASH)&lt;br /&gt;
| logo = &lt;br /&gt;
| screenshot = Debian Almquist shell (dash) screenshot on Linux.webp&lt;br /&gt;
| caption = Screenshot of &amp;lt;code&amp;gt;dash&amp;lt;/code&amp;gt; running on [[openSUSE]] Tumbleweed&lt;br /&gt;
| developer = Herbert Xu&lt;br /&gt;
| released = {{Start date and age|1997|07|15}}&lt;br /&gt;
| latest release version = 0.5.13.5&lt;br /&gt;
| latest release date = {{Start date and age|2026|07|18}}&lt;br /&gt;
| programming language = [[C (programming language)|C]]&lt;br /&gt;
| operating system = [[Linux]], [[Android (operating system)|Android]]&lt;br /&gt;
| platform = &lt;br /&gt;
| genre = [[Unix shell]]&lt;br /&gt;
| license = [[BSD licenses|3-clause BSD license]] with mksignames under [[GNU GPL]]&amp;lt;ref&amp;gt;{{cite web |last1=Xu |first1=Herbert |title=COPYING |url=https://git.kernel.org/pub/scm/utils/dash/dash.git/tree/COPYING?h=v0.5.12 |website=The Linux Kernel Archives |access-date=23 December 2023}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| website = {{URL|gondor.apana.org.au/~herbert/dash/}}&lt;br /&gt;
| repo = {{URL|git.kernel.org/pub/scm/utils/dash/dash.git}}&lt;br /&gt;
}}&lt;br /&gt;
In 1997 Herbert Xu ported &amp;lt;code&amp;gt;ash&amp;lt;/code&amp;gt; from NetBSD to [[Debian|Debian Linux]]. In September 2002, with release 0.4.1, this port was renamed to &amp;#039;&amp;#039;&amp;#039;Dash&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;Debian Almquist shell&amp;#039;&amp;#039;&amp;#039;). Xu&amp;#039;s main priorities are POSIX conformance and slim implementation.&amp;lt;ref name=vars/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Like its predecessor, Dash implements support for neither [[internationalization and localization]] nor [[Variable-width encoding|multi-byte character encoding]] (both required in POSIX).{{Citation needed|date=March 2023}} Line editing and history support based on libedit is optional ({{code|--with-libedit}}).&lt;br /&gt;
&lt;br /&gt;
=== Adoption in Debian and Ubuntu ===&lt;br /&gt;
{{anchor|Slimness}}Because of its slimness, [[Ubuntu (operating system)|Ubuntu]] decided to adopt Dash as the default &amp;lt;code&amp;gt;/bin/sh&amp;lt;/code&amp;gt;&amp;lt;ref name=&amp;quot;Debian&amp;quot;&amp;gt;{{cite web&lt;br /&gt;
| url=https://wiki.debian.org/Shell&lt;br /&gt;
| title=Non-interactive Shell&lt;br /&gt;
| website=[[Debian]] Wiki&lt;br /&gt;
| date=2020-01-13&lt;br /&gt;
| access-date=2020-02-29}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Ubuntu&amp;quot;&amp;gt;{{cite web&lt;br /&gt;
| url=https://wiki.ubuntu.com/DashAsBinSh&lt;br /&gt;
| title=Dash as /bin/sh&lt;br /&gt;
| website=[[Ubuntu (operating system)|Ubuntu]] Wiki&lt;br /&gt;
| date=2017-12-16&lt;br /&gt;
| access-date=2020-02-29}}&amp;lt;/ref&amp;gt; in October 2006 with version 6.10. The reason for using Dash is faster [[shell script]] execution,&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
| author=Neal Krawetz&lt;br /&gt;
| title=Ubuntu: Powerful Hacks and Customizations&lt;br /&gt;
| year=2011&lt;br /&gt;
| publisher=[[John Wiley &amp;amp; Sons]]&lt;br /&gt;
| pages=178&lt;br /&gt;
| url=https://books.google.com/books?id=h_zclqESvu8C&amp;amp;pg=PT178&lt;br /&gt;
| isbn=9781118080382}}&amp;lt;/ref&amp;gt; especially during startup of the operating system, compared to previous versions of Debian and Ubuntu that used Bash for this purpose, although [[Bash (Unix shell)|Bash]] is still the default login shell for interactive use.&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
| author1=Christopher Negus&lt;br /&gt;
| author2=Francois Caen&lt;br /&gt;
| title=Ubuntu Linux Toolbox&lt;br /&gt;
| publisher=John Wiley &amp;amp; Sons&lt;br /&gt;
| year=2011&lt;br /&gt;
| url=https://books.google.com/books?id=L_IXUtw_w-AC&amp;amp;pg=PA49&lt;br /&gt;
| pages=49&lt;br /&gt;
| isbn=9781118079140}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A result of the shift is that many [[shell script]]s were found making use of [[Bash (Unix shell)|Bash]]-specific functionalities (&amp;quot;bashisms&amp;quot;) without properly declaring it in the [[shebang (Unix)|shebang]] line.&amp;lt;ref&amp;gt;{{cite web&lt;br /&gt;
| url=https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463&lt;br /&gt;
| title=Script that are using bash could be broken with the new symlink&lt;br /&gt;
| author=Egil Hasting&lt;br /&gt;
| date=2006-09-20&lt;br /&gt;
| publisher=[[Launchpad (website)|Launchpad]]&lt;br /&gt;
| access-date=2020-02-29}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web&lt;br /&gt;
| url=https://bugs.launchpad.net/ubuntu/+source/dash/+bug/141481&lt;br /&gt;
| title=dash as #!/bin/sh introduces countless incompatibilities&lt;br /&gt;
| author=comotion&lt;br /&gt;
| date=2007-09-21&lt;br /&gt;
| publisher=Launchpad&lt;br /&gt;
| access-date=2020-02-29}}&amp;lt;/ref&amp;gt; The problem was first spotted in Ubuntu and the maintainers decided to make all the scripts comply with the [[POSIX]] standard. The changes were later upstreamed to Debian, which eventually adopted Dash as its default {{code|/bin/sh}} too in Debian 6 (Squeeze), released in February 2011.&amp;lt;ref name=&amp;quot;Debian&amp;quot;/&amp;gt; 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 ({{code|local}}, {{code|echo -n}}, {{code|test -a / -o}}).&amp;lt;ref name=deb&amp;gt;{{cite web |title=10. Files |url=https://www.debian.org/doc/debian-policy/ch-files.html#scripts |website=Debian Policy Manual v4.5.0.2}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{man|1|checkbashisms|ManKier}}&amp;lt;/ref&amp;gt; A similar transition has happened in Slackware Linux, although its version of {{code|ash}} is only partially based on Dash.&amp;lt;ref name=vars/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Embedded Linux===&lt;br /&gt;
Ash (mainly the Dash fork) is also fairly popular in [[embedded Linux]] systems. Dash version 0.3.8-5 was incorporated into [[BusyBox]], the catch-all executable often employed in this area. Modern BusyBox versions support additional [[Bash (Unix shell)|Bash]] features which are enabled in modern distributions like [[Alpine Linux]], [[Tiny Core Linux]] and Linux-based [[Router (computing)|router]] firmware such as [[OpenWrt]], [[Tomato (firmware)|Tomato]] and [[DD-WRT]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Comparison of command shells]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* {{Official website}}&lt;br /&gt;
* {{man|1|dash|Linux}}&lt;br /&gt;
* {{man|1|dash|Debian}}&lt;br /&gt;
* {{man|1|sh|FreeBSD}}&lt;br /&gt;
* {{man|1|sh|NetBSD}}&lt;br /&gt;
&lt;br /&gt;
{{Unix shells}}&lt;br /&gt;
&lt;br /&gt;
[[Category:1989 software]]&lt;br /&gt;
[[Category:Cross-platform software]]&lt;br /&gt;
[[Category:Scripting languages]]&lt;br /&gt;
[[Category:Text-oriented programming languages]]&lt;br /&gt;
[[Category:Unix shells]]&lt;/div&gt;</summary>
		<author><name>imported&gt;MichielN</name></author>
	</entry>
</feed>