This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

dash

From Gentoo Wiki (test)
Jump to:navigation Jump to:search

dash is the Debian Almquist shell: a small, fast, and posix-compliant shell. It is well-suited for startup scripts, and used on Debian (and derivative distributions) as /bin/sh replacement. As some shell scripts may have bashisms in them, it is not guaranteed to work out-of-the-box on Gentoo as /bin/sh replacement.

Installation

USE flags

USE flags for app-shells/dash Debian Almquist Shell

libedit Use the libedit library (replacement for readline)
static  !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically

Emerge

root #emerge --ask app-shells/dash

Configuration

Make dash as system shell:

root #cd /bin
root #ln -sf dash sh
root #echo /bin/dash >>/etc/shells
root #usermod -s /bin/dash root

Use dash as current shell:

user $chsh -s /bin/dash

See also

  • Shell — a command-line interpreter that offers a text-based interface to users.