Dash-0.5.10.2

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 7. Shells

- Prev

  Shells

- Next

  Tcsh-6.20.00

- Up
- Home

# Dash-0.5.10.2

## Introduction to Dash

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.

This package is known to build and work properly using an LFS-8.4 platform.

### Package Information

- Download (HTTP): http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.10.2.tar.gz

- Download MD5 sum: 8f485f126c05d0ab800e85abfe1987aa

- Download size: 220 KB

- Estimated disk space required: 2.9 MB

- Estimated build time: less than 0.1 SBU

### Dash Dependencies

#### Optional

libedit (command line editor library)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/dash

## Installation of Dash

Install Dash by running the following commands:

    ./configure --bindir=/bin --mandir=/usr/share/man &&
    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:

### Note

If you create the symbolic link from dash to sh, you will need to reset the link to bash to build LFS.

    ln -svf dash /bin/sh

## Command Explanations

`--bindir=/bin`: This parameter places the dash binary into the root filesystem.

`--with-libedit`: To compile Dash with libedit support.

## Configuring Dash

### Config Files

Dash sources `/etc/profile` and `~/.profile`

### Configuration Information

Update `/etc/shells` to include the Dash shell by issuing the following command as the `root` user:

    cat >> /etc/shells << "EOF"
    /bin/dash
    EOF

## Contents

Installed Program: dash
Installed Libraries: None
Installed Directories: None

### Short Description

dash | is a POSIX compliant shell.

Last updated on 2019-02-18 15:07:03 -0600

- Prev

  Shells

- Next

  Tcsh-6.20.00

- Up
- Home