[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[92474b45] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-bash" role="wrap">
|
---|
[92474b45] | 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/>
|
---|
[673b0d8] | 19 |
|
---|
[92474b45] | 20 | <para>The Bash package contains the Bourne-Again SHell.</para>
|
---|
[6370fa6] | 21 |
|
---|
[92474b45] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>&buildtime;</segtitle>
|
---|
| 24 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 25 |
|
---|
[92474b45] | 26 | <seglistitem>
|
---|
[e4a5635] | 27 | <seg>&bash-ch6-sbu;</seg>
|
---|
| 28 | <seg>&bash-ch6-du;</seg>
|
---|
[92474b45] | 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[673b0d8] | 31 |
|
---|
[92474b45] | 32 | </sect2>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="installation">
|
---|
| 35 | <title>Installation of Bash</title>
|
---|
| 36 |
|
---|
| 37 | <para>If you downloaded the Bash documentation tarball and wish to install
|
---|
| 38 | HTML documentation, issue the following commands:</para>
|
---|
[bdee2f5] | 39 |
|
---|
[5998892] | 40 | <screen><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz &&
|
---|
[bdee2f5] | 41 | sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
|
---|
| 42 | Makefile.in</userinput></screen>
|
---|
| 43 |
|
---|
[bc68833] | 44 | <para>Apply fixes for several bugs discovered since the initial release of
|
---|
| 45 | Bash-&bash-version;:</para>
|
---|
[c93d057] | 46 |
|
---|
[bc68833] | 47 | <screen><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
|
---|
[c93d057] | 48 |
|
---|
[92474b45] | 49 | <para>Prepare Bash for compilation:</para>
|
---|
[73aedd1d] | 50 |
|
---|
[9dfc02f] | 51 | <screen><userinput>./configure --prefix=/usr --bindir=/bin \
|
---|
[3125dfb] | 52 | --without-bash-malloc --with-installed-readline</userinput></screen>
|
---|
[73aedd1d] | 53 |
|
---|
[92474b45] | 54 | <variablelist>
|
---|
| 55 | <title>The meaning of the configure options:</title>
|
---|
[81fd230] | 56 |
|
---|
[92474b45] | 57 | <varlistentry>
|
---|
| 58 | <term><parameter>--with-installed-readline</parameter></term>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>This option tells Bash to use the <filename
|
---|
| 61 | class="libraryfile">readline</filename> library that is already
|
---|
| 62 | installed on the system rather than using its own readline
|
---|
| 63 | version.</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </varlistentry>
|
---|
[81fd230] | 66 |
|
---|
[92474b45] | 67 | </variablelist>
|
---|
| 68 |
|
---|
| 69 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 70 |
|
---|
| 71 | <screen><userinput>make</userinput></screen>
|
---|
| 72 |
|
---|
[ecbbbd4] | 73 | <para>Skip down to <quote>Install the
|
---|
| 74 | package</quote> if not running the test suite.</para>
|
---|
| 75 |
|
---|
| 76 | <para>To prepare the tests, ensure that the locale
|
---|
| 77 | setting from our environment will be used and that the <systemitem
|
---|
| 78 | class="username">nobody</systemitem> user can write to the sources tree:</para>
|
---|
[f4c628c] | 79 |
|
---|
[2ccccf7] | 80 | <screen><userinput>sed -i 's/LANG/LC_ALL/' tests/intl.tests
|
---|
[ecbbbd4] | 81 | chown -Rv nobody ./</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <para>Now, run the tests as the <systemitem
|
---|
| 84 | class="username">nobody</systemitem> user:</para>
|
---|
| 85 |
|
---|
| 86 | <screen><userinput>su-tools nobody -s /bin/bash -c "make tests"</userinput></screen>
|
---|
[73aedd1d] | 87 |
|
---|
[92474b45] | 88 | <para>Install the package:</para>
|
---|
[73aedd1d] | 89 |
|
---|
| 90 | <screen><userinput>make install</userinput></screen>
|
---|
| 91 |
|
---|
[92474b45] | 92 | <para>Run the newly compiled <command>bash</command> program (replacing the one that is
|
---|
| 93 | currently being executed):</para>
|
---|
[673b0d8] | 94 |
|
---|
[de92788] | 95 | <screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
|
---|
[73aedd1d] | 96 |
|
---|
[92474b45] | 97 | <note>
|
---|
| 98 | <para>The parameters used make the <command>bash</command>
|
---|
| 99 | process an interactive login shell and continue to disable hashing so
|
---|
| 100 | that new programs are found as they become available.</para>
|
---|
| 101 | </note>
|
---|
| 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 id="contents-bash" role="content">
|
---|
| 106 | <title>Contents of Bash</title>
|
---|
| 107 |
|
---|
| 108 | <segmentedlist>
|
---|
| 109 | <segtitle>Installed programs</segtitle>
|
---|
| 110 |
|
---|
| 111 | <seglistitem>
|
---|
| 112 | <seg>bash, bashbug, and sh (link to bash)</seg>
|
---|
| 113 | </seglistitem>
|
---|
| 114 | </segmentedlist>
|
---|
| 115 |
|
---|
| 116 | <variablelist>
|
---|
| 117 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 118 | <?dbfo list-presentation="list"?>
|
---|
| 119 | <?dbhtml list-presentation="table"?>
|
---|
| 120 |
|
---|
| 121 | <varlistentry id="bash">
|
---|
| 122 | <term><command>bash</command></term>
|
---|
| 123 | <listitem>
|
---|
| 124 | <para>A widely-used command interpreter; it performs many types of
|
---|
| 125 | expansions and substitutions on a given command line before executing
|
---|
| 126 | it, thus making this interpreter a powerful tool</para>
|
---|
| 127 | <indexterm zone="ch-system-bash bash">
|
---|
| 128 | <primary sortas="b-bash">bash</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
| 132 |
|
---|
| 133 | <varlistentry id="bashbug">
|
---|
| 134 | <term><command>bashbug</command></term>
|
---|
| 135 | <listitem>
|
---|
| 136 | <para>A shell script to help the user compose and mail standard
|
---|
| 137 | formatted bug reports concerning <command>bash</command></para>
|
---|
| 138 | <indexterm zone="ch-system-bash bashbug">
|
---|
| 139 | <primary sortas="b-bashbug">bashbug</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="sh">
|
---|
| 145 | <term><command>sh</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>A symlink to the <command>bash</command> program; when invoked
|
---|
| 148 | as <command>sh</command>, <command>bash</command> tries to mimic the
|
---|
| 149 | startup behavior of historical versions of <command>sh</command> as
|
---|
| 150 | closely as possible, while conforming to the POSIX standard as
|
---|
| 151 | well</para>
|
---|
| 152 | <indexterm zone="ch-system-bash sh">
|
---|
| 153 | <primary sortas="b-sh">sh</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | </variablelist>
|
---|
| 159 |
|
---|
| 160 | </sect2>
|
---|
[673b0d8] | 161 |
|
---|
| 162 | </sect1>
|
---|