[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-bash" role="wrap">
|
---|
| 9 | <?dbhtml filename="bash.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Bash-&bash-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-bash">
|
---|
| 14 | <primary sortas="a-Bash">Bash</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Bash package contains the Bourne-Again SHell.</para>
|
---|
| 21 |
|
---|
| 22 | </sect2>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="installation">
|
---|
| 25 | <title>Installation of Bash</title>
|
---|
| 26 |
|
---|
| 27 | <para os="a">If you downloaded the Bash documentation tarball and wish to
|
---|
| 28 | install HTML documentation, issue the following commands:</para>
|
---|
| 29 |
|
---|
[3349a3a] | 30 | <screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz
|
---|
| 31 | cp Makefile.in{,.orig}
|
---|
| 32 | sed "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
|
---|
| 33 | Makefile.in.orig > Makefile.in</userinput></screen>
|
---|
[02095ae] | 34 |
|
---|
| 35 | <para os="p1">The following patch contains updates from the maintainer. The
|
---|
| 36 | maintainer of Bash only releases these patches to fix serious issues.</para>
|
---|
| 37 |
|
---|
| 38 | <screen os="p2"><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
|
---|
| 39 |
|
---|
| 40 | <para os="c">Create a config.cache containing information about a test that
|
---|
| 41 | cannot be run when cross-compiling:</para>
|
---|
| 42 |
|
---|
| 43 | <screen os="d"><userinput>echo "ac_cv_func_setvbuf_reversed=no" > config.cache
|
---|
| 44 | </userinput></screen>
|
---|
| 45 |
|
---|
| 46 | <para os="e">Prepare Bash for compilation:</para>
|
---|
| 47 |
|
---|
| 48 | <screen os="f"><userinput>./configure --prefix=/usr --bindir=/bin \
|
---|
[586feb7] | 49 | --host=${CLFS_TARGET} --cache-file=config.cache \
|
---|
[02095ae] | 50 | --without-bash-malloc --with-installed-readline</userinput></screen>
|
---|
| 51 |
|
---|
| 52 | <variablelist os="g">
|
---|
| 53 | <title>The meaning of the configure option:</title>
|
---|
| 54 |
|
---|
| 55 | <varlistentry>
|
---|
| 56 | <term><parameter>--with-installed-readline</parameter></term>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>This option tells Bash to use the
|
---|
| 59 | <filename class="libraryfile">readline</filename> library that is
|
---|
| 60 | already installed on the system rather than using its own readline
|
---|
| 61 | version.</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
| 64 | </variablelist>
|
---|
| 65 |
|
---|
| 66 | <para os="h">Compile the package:</para>
|
---|
| 67 |
|
---|
| 68 | <screen os="i"><userinput>make</userinput></screen>
|
---|
| 69 |
|
---|
| 70 | <para os="j">Install the package:</para>
|
---|
| 71 |
|
---|
[586feb7] | 72 | <screen os="k"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
|
---|
[02095ae] | 73 |
|
---|
| 74 | <para os="l">Create /bin/sh:</para>
|
---|
| 75 |
|
---|
[586feb7] | 76 | <screen os="m" role="nodump"><userinput>ln -sv bash ${CLFS}/bin/sh</userinput></screen>
|
---|
[02095ae] | 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 id="contents-bash" role="content">
|
---|
| 81 | <title>Contents of Bash</title>
|
---|
| 82 |
|
---|
| 83 | <segmentedlist>
|
---|
| 84 | <segtitle>Installed programs</segtitle>
|
---|
| 85 |
|
---|
| 86 | <seglistitem>
|
---|
| 87 | <seg>bash, bashbug, and sh (link to bash)</seg>
|
---|
| 88 | </seglistitem>
|
---|
| 89 | </segmentedlist>
|
---|
| 90 |
|
---|
| 91 | <variablelist>
|
---|
| 92 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 93 | <?dbfo list-presentation="list"?>
|
---|
| 94 | <?dbhtml list-presentation="table"?>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="bash">
|
---|
| 97 | <term><command>bash</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>A widely-used command interpreter; it performs many types of
|
---|
| 100 | expansions and substitutions on a given command line before executing
|
---|
| 101 | it, thus making this interpreter a powerful tool</para>
|
---|
| 102 | <indexterm zone="ch-system-bash bash">
|
---|
| 103 | <primary sortas="b-bash">bash</primary>
|
---|
| 104 | </indexterm>
|
---|
| 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="bashbug">
|
---|
| 109 | <term><command>bashbug</command></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>A shell script to help the user compose and mail standard
|
---|
| 112 | formatted bug reports concerning <command>bash</command></para>
|
---|
| 113 | <indexterm zone="ch-system-bash bashbug">
|
---|
| 114 | <primary sortas="b-bashbug">bashbug</primary>
|
---|
| 115 | </indexterm>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="sh">
|
---|
| 120 | <term><command>sh</command></term>
|
---|
| 121 | <listitem>
|
---|
| 122 | <para>A symlink to the <command>bash</command> program; when invoked
|
---|
| 123 | as <command>sh</command>, <command>bash</command> tries to mimic the
|
---|
| 124 | startup behavior of historical versions of <command>sh</command> as
|
---|
| 125 | closely as possible, while conforming to the POSIX standard as
|
---|
| 126 | well</para>
|
---|
| 127 | <indexterm zone="ch-system-bash sh">
|
---|
| 128 | <primary sortas="b-sh">sh</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
| 132 |
|
---|
| 133 | </variablelist>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | </sect1>
|
---|