Debian Almquist shell

Debian Almquist shell
Debian Almquist shell
Stable release 0.5.7 / July 8, 2011; 4 months ago (2011-07-08)
Type POSIX-compliant Unix shell
License BSD license, GNU General Public License
Website http://gondor.apana.org.au/~herbert/dash/

The Debian Almquist shell (dash) is a Unix shell, much smaller than bash but still aiming at POSIX-compliancy. It requires less disk space but is also less feature-rich.

History

Dash is a direct descendant of the NetBSD version of the Almquist shell (ash). It was ported to Linux by Herbert Xu in early 1997. It was renamed to dash in 2002.

Dash, like ash, executes shell scripts faster than bash and depends on fewer libraries. It is believed[1] to be more reliable in the case of upgrade problems or disk failures. dash may be used as a:

  • shell on installation floppy disks
  • root user shell
  • /bin/sh replacement
  • testing environment for shell scripts to verify their compatibility with POSIX syntax

Dash is a modern replacement for ash in Debian and was expected to be the default /bin/sh for Debian Lenny.[2][3] Dash has been the default /bin/sh in Ubuntu since the 6.10 release in October 2006.[4] During the transition by Ubuntu, numerous scripts making use of Bash-specific functionality (but not declaring it) were discovered.[5][6] To avoid errors, Bash-specific scripts can be modified to be compatible with the appropriate standard, or explicitly declare their use of bashisms by explicitly setting the interpreter to bash via the shebang line: #!/usr/bin/env bash.

References

External links