Dash is a POSIX compliant shell.
It can be installed as /bin/sh or as the default shell for either
root or a second user with a userid
of 0. It depends on fewer libraries than the Bash shell and is therefore less likely to be
affected by an upgrade problem or disk failure. Dash is also useful for checking that a script
is completely compatible with POSIX syntax.
Download (HTTP): http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.3.tar.gz
Download (FTP): ftp://ftp.debian.org/debian/pool/main/d/dash/dash_0.5.3.orig.tar.gz
Download MD5 sum: 1a3cd6669459be4344ec55ec9d4914f8
Download size: 200 KB
Estimated disk space required: 1.8 MB
Estimated build time: 0.1 SBU
Required Patch containing bug fixes from upstream: http://www.linuxfromscratch.org/patches/blfs/svn/dash-0.5.3-fixes-1.patch
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/dash
Install Dash by running the following commands:
patch -Np1 -i ../dash-0.5.3-fixes-1.patch && ./configure --bindir=/bin --mandir=/usr/share/man && LC_ALL=C make
This package does not come with a test suite.
Now, as the root user:
make install
If you would like to make dash the default sh, recreate the /bin/sh symlink as the root user:
ln -svf dash /bin/sh
--bindir=/bin: This
parameter places the dash binary into the root
filesystem.
LC_ALL=C make: This ensures that the sort command executed during the build process returns the expected results.
Update /etc/shells to include the
Dash shell by issuing the
following command as the root
user:
cat >> /etc/shells << "EOF"
/bin/dash
EOF
Last updated on 2007-04-04 21:42:53 +0200