Almquist Shell: Difference between revisions

m
Add notes about POSIX noncompliance and feature set.
m (Add notes about POSIX noncompliance and feature set.)
Line 1:
{{implementation|UNIX Shell}}
'''Almquist Shell''' is a minimal implementation of aan almost-[[POSIX]] shell, and also a replacement for [[compatible with::Bourne Shell]]. Almquist Shell has more features than Bourne Shell, but fewer features than most other shells. (No arrays!) Almquist Shell only implements POSIX features, plus a few [[BSD]] traditions, like its <code>local</code> commandvariables in functions. Almquist Shell is the default shell, <code>/bin/sh</code>, of some systems. However, it does not have any of the internationalization/localization or multi-byte character encoding support required by the POSIX standard, so it is not a POSIX-compliant shell.
 
If a script works with Almquist Shell, it will probably also work with [[bash]], [[pdksh]] and [[zsh]]. Further, it will probably work with [[ksh93]] ''unless'' it uses <code>local</code>, which ksh93 lacks.
Line 9:
Ash has three major variants:
 
* [[Debian Almquist Shell]] (Dash), which adds support for `echo -n` and `test -a`/`-o`
* [http://svnweb.freebsd.org/base/head/bin/sh/ FreeBSD /bin/sh]
* [http://cvsweb.netbsd.org/bsdweb.cgi/src/bin/sh/?only_with_tag=MAIN NetBSD /bin/sh]
1,480

edits