source: clfs-sysroot/BOOK/final-system/common/bash.xml@ b47f947

Last change on this file since b47f947 was 7f64ca3, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Add the bash fixes patch to the bash page.

  • Property mode set to 100644
File size: 4.5 KB
RevLine 
[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
[c19433e]30<screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz</userinput></screen>
[02095ae]31
[7f64ca3]32 <para os="p1">The following patch contains updates from the maintainer. The maintainer of Bash only releases these patches to fix serious issues:</para>
33
34<screen os="p2"><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
35
36 <para os="c">When bash is cross-compiled, it cannot test for the presence
[713696e]37 of named pipes. If you used <command>su</command> to become an unprivileged
38 user, this combination will cause Bash to build without <emphasis>process
39 substitution</emphasis>.</para>
40
[34e600d]41 <screen os="d"><userinput>echo "bash_cv_sys_named_pipes=yes" &gt; config.cache</userinput></screen>
[713696e]42
43<para os="e">Prepare Bash for compilation:</para>
[02095ae]44
[cee2ca2]45<screen os="f"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
46 --prefix=/usr --bindir=/bin --cache-file=config.cache \
[02095ae]47 --without-bash-malloc --with-installed-readline</userinput></screen>
48
49 <variablelist os="g">
50 <title>The meaning of the configure option:</title>
51
52 <varlistentry>
53 <term><parameter>--with-installed-readline</parameter></term>
54 <listitem>
55 <para>This option tells Bash to use the
56 <filename class="libraryfile">readline</filename> library that is
57 already installed on the system rather than using its own readline
58 version.</para>
59 </listitem>
60 </varlistentry>
61 </variablelist>
62
63 <para os="h">Compile the package:</para>
64
65<screen os="i"><userinput>make</userinput></screen>
66
67 <para os="j">Install the package:</para>
68
[c19433e]69<screen os="k"><userinput>make DESTDIR=${CLFS} htmldir=/usr/share/doc/bash-&bash-version; install</userinput></screen>
[02095ae]70
71 <para os="l">Create /bin/sh:</para>
72
[4e4f58e]73<screen os="m"><userinput>ln -sv bash ${CLFS}/bin/sh</userinput></screen>
[02095ae]74
75 </sect2>
76
77 <sect2 id="contents-bash" role="content">
78 <title>Contents of Bash</title>
79
80 <segmentedlist>
81 <segtitle>Installed programs</segtitle>
82
83 <seglistitem>
84 <seg>bash, bashbug, and sh (link to bash)</seg>
85 </seglistitem>
86 </segmentedlist>
87
88 <variablelist>
89 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
90 <?dbfo list-presentation="list"?>
91 <?dbhtml list-presentation="table"?>
92
93 <varlistentry id="bash">
94 <term><command>bash</command></term>
95 <listitem>
96 <para>A widely-used command interpreter; it performs many types of
97 expansions and substitutions on a given command line before executing
98 it, thus making this interpreter a powerful tool</para>
99 <indexterm zone="ch-system-bash bash">
100 <primary sortas="b-bash">bash</primary>
101 </indexterm>
102 </listitem>
103 </varlistentry>
104
105 <varlistentry id="bashbug">
106 <term><command>bashbug</command></term>
107 <listitem>
108 <para>A shell script to help the user compose and mail standard
109 formatted bug reports concerning <command>bash</command></para>
110 <indexterm zone="ch-system-bash bashbug">
111 <primary sortas="b-bashbug">bashbug</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry id="sh">
117 <term><command>sh</command></term>
118 <listitem>
119 <para>A symlink to the <command>bash</command> program; when invoked
120 as <command>sh</command>, <command>bash</command> tries to mimic the
121 startup behavior of historical versions of <command>sh</command> as
122 closely as possible, while conforming to the POSIX standard as
123 well</para>
124 <indexterm zone="ch-system-bash sh">
125 <primary sortas="b-sh">sh</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 </variablelist>
131
132 </sect2>
133
134</sect1>
Note: See TracBrowser for help on using the repository browser.