[bf8c11f] | 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 | <segmentedlist>
|
---|
| 23 | <segtitle>&dependencies;</segtitle>
|
---|
| 24 |
|
---|
| 25 | <seglistitem>
|
---|
| 26 | <seg>Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make,
|
---|
| 27 | Ncurses, and Sed.</seg>
|
---|
| 28 | </seglistitem>
|
---|
| 29 | </segmentedlist>
|
---|
| 30 |
|
---|
| 31 | </sect2>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="installation">
|
---|
| 34 | <title>Installation of Bash</title>
|
---|
| 35 |
|
---|
| 36 | <para os="a">If you downloaded the Bash documentation tarball and wish to
|
---|
| 37 | install HTML documentation, issue the following commands:</para>
|
---|
| 38 |
|
---|
| 39 | <screen os="b"><userinput>tar -zxf ../bash-doc-&bash-doc-version;.tar.gz &&
|
---|
| 40 | sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
|
---|
| 41 | Makefile.in</userinput></screen>
|
---|
| 42 |
|
---|
| 43 | <para os="c">The following patch fixes various issues, including a problem where
|
---|
| 44 | Bash will sometimes only show 33 characters on a line, then wrap to the
|
---|
| 45 | next:</para>
|
---|
| 46 |
|
---|
| 47 | <screen os="d"><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
|
---|
| 48 |
|
---|
| 49 | <para os="e">Bash also has issues when compiled against newer versions of Glibc.
|
---|
| 50 | The following patch resolves this problem:</para>
|
---|
| 51 |
|
---|
| 52 | <screen os="f"><userinput>patch -Np1 -i ../&bash-avoid_WCONTINUED-patch;</userinput></screen>
|
---|
| 53 |
|
---|
| 54 | <para os="g">Prepare Bash for compilation:</para>
|
---|
| 55 |
|
---|
| 56 | <screen><userinput>./configure --prefix=/usr --bindir=/bin \
|
---|
| 57 | --without-bash-malloc --with-installed-readline</userinput></screen>
|
---|
| 58 |
|
---|
| 59 | <variablelist os="h">
|
---|
| 60 | <title>The meaning of the configure option:</title>
|
---|
| 61 |
|
---|
| 62 | <varlistentry>
|
---|
| 63 | <term><parameter>--with-installed-readline</parameter></term>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>This option tells Bash to use the
|
---|
| 66 | <filename class="libraryfile">readline</filename> library that is
|
---|
| 67 | already installed on the system rather than using its own readline
|
---|
| 68 | version.</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </varlistentry>
|
---|
| 71 | </variablelist>
|
---|
| 72 |
|
---|
| 73 | <para os="i">Compile the package:</para>
|
---|
| 74 |
|
---|
| 75 | <screen os="j"><userinput>make</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | <para os="k">To test the results, issue:
|
---|
| 78 | <userinput>make tests</userinput>.</para>
|
---|
| 79 |
|
---|
| 80 | <para os="l">Install the package:</para>
|
---|
| 81 |
|
---|
| 82 | <screen os="m"><userinput>make install</userinput></screen>
|
---|
| 83 |
|
---|
| 84 | <para os="n">Run the newly compiled <command>bash</command> program (replacing
|
---|
| 85 | the one that is currently being executed):</para>
|
---|
| 86 |
|
---|
| 87 | <screen os="o"><userinput>exec /bin/bash --login +h</userinput></screen>
|
---|
| 88 |
|
---|
| 89 | <note os="p">
|
---|
| 90 | <para>The parameters used make the <command>bash</command>
|
---|
| 91 | process an interactive login shell and continue to disable hashing so
|
---|
| 92 | that new programs are found as they become available.</para>
|
---|
| 93 | </note>
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 id="contents-bash" role="content">
|
---|
| 98 | <title>Contents of Bash</title>
|
---|
| 99 |
|
---|
| 100 | <segmentedlist>
|
---|
| 101 | <segtitle>Installed programs</segtitle>
|
---|
| 102 |
|
---|
| 103 | <seglistitem>
|
---|
| 104 | <seg>bash, bashbug, and sh (link to bash)</seg>
|
---|
| 105 | </seglistitem>
|
---|
| 106 | </segmentedlist>
|
---|
| 107 |
|
---|
| 108 | <variablelist>
|
---|
| 109 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 110 | <?dbfo list-presentation="list"?>
|
---|
| 111 | <?dbhtml list-presentation="table"?>
|
---|
| 112 |
|
---|
| 113 | <varlistentry id="bash">
|
---|
| 114 | <term><command>bash</command></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>A widely-used command interpreter; it performs many types of
|
---|
| 117 | expansions and substitutions on a given command line before executing
|
---|
| 118 | it, thus making this interpreter a powerful tool</para>
|
---|
| 119 | <indexterm zone="ch-system-bash bash">
|
---|
| 120 | <primary sortas="b-bash">bash</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | <varlistentry id="bashbug">
|
---|
| 126 | <term><command>bashbug</command></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>A shell script to help the user compose and mail standard
|
---|
| 129 | formatted bug reports concerning <command>bash</command></para>
|
---|
| 130 | <indexterm zone="ch-system-bash bashbug">
|
---|
| 131 | <primary sortas="b-bashbug">bashbug</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="sh">
|
---|
| 137 | <term><command>sh</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>A symlink to the <command>bash</command> program; when invoked
|
---|
| 140 | as <command>sh</command>, <command>bash</command> tries to mimic the
|
---|
| 141 | startup behavior of historical versions of <command>sh</command> as
|
---|
| 142 | closely as possible, while conforming to the POSIX standard as
|
---|
| 143 | well</para>
|
---|
| 144 | <indexterm zone="ch-system-bash sh">
|
---|
| 145 | <primary sortas="b-sh">sh</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
| 149 |
|
---|
| 150 | </variablelist>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | </sect1>
|
---|