dash is the Debian Almquist shell: a small, fast, and POSIX compliant shell. It is well-suited for startup scripts, and is used on Debian (and derivative distributions) as /bin/sh.
As some shell scripts may have "bashisms" in them, dash is not guaranteed to work as a /bin/sh replacement on Gentoo, out-of-the-box.
See the terminal emulator article for some general usage pointers, though dash is not often used in interactive mode.
USE flags for app-shells/dash Debian Almquist Shell
emerge --ask app-shells/dash
Make dash the default system shell:
ln -sf dash sh
echo /bin/dash >>/etc/shells
usermod -s /bin/dash root
Use dash as current shell:
chsh -s /bin/dash
Alternatively, just use app-eselect/eselect-sh:
eselect sh set /bin/dash
The output of a shell can, in some conditions, become corrupt. See the terminal emulator article for instructions to help fix this.
- Shell — command-line interpreter that offers a text-based interface to users.