Linux From Scratch: Version 5.1-pre1
Prev | Chapter 6. Installing basic system software | Next

# Installing Bash-2.05b

The Bash package contains the Bourne-Again SHell.

    Approximate build time:  1.2 SBU
    Required disk space:     27 MB

Official download location for Bash (2.05b):
ftp://ftp.gnu.org/gnu/bash/
And for the Bash Patch:
http://www.linuxfromscratch.org/patches/lfs/cvs/bash-2.05b-2.patch

For its installation Bash depends on: Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Sed.

##

## Installation of Bash

Bash has a number of bugs in it that cause it to not behave the way it is expected at times. Fix this behaviour with the following patch:

    patch -Np1 -i ../bash-2.05b-2.patch

Now prepare Bash for compilation:

    ./configure --prefix=/usr --bindir=/bin

Compile the package:

    make

This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:

    make tests

Install the package:

    make install

And reload the newly compiled bash program:

    exec /bin/bash --login +h

##

## Contents of Bash

Installed programs: bash, sh (link to bash) and bashbug

## Short descriptions

bash is a widely-used command interpreter. It performs all kinds of expansions and substitutions on a given command line before executing it, thus making this interpreter a powerful tool.

bashbug is a shell script to help the user compose and mail bug reports concerning bash in a standard format.

sh is a symlink to the bash program. When invoked as sh, bash tries to mimic the startup behavior of historical versions of sh as closely as possible, while conforming to the POSIX standard as well.

Prev | Home | Next
Installing Automake-1.8.2 | Up | Installing File-4.07