source: BOOK/final-system/common/bash.xml@ 9ba7bfe

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9ba7bfe was d849dd4, checked in by Jim Gifford <clfs@…>, 16 years ago

Changed Patches to Bash

  • Property mode set to 100644
File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 command:</para>
29
30<screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz</userinput></screen>
31
32 <para os="p1">The following patch contains updates from the maintainer. The
33 maintainer of Bash only releases these patches to fix serious issues:</para>
34
35<screen os="p2"><userinput>patch -Np1 -i ../&bash-branch_update-patch;</userinput></screen>
36
37 <para os="p3">The following patch contains fixes that affect a CLFS system. These are
38 validated issues by the CLFS developers:</para>
39
40<screen os="p4"><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
41
42 <para os="g">Prepare Bash for compilation:</para>
43
44<screen os="h"><userinput>./configure --prefix=/usr --bindir=/bin \
45 --without-bash-malloc --with-installed-readline</userinput></screen>
46
47 <variablelist os="i">
48 <title>The meaning of the configure option:</title>
49
50 <varlistentry>
51 <term><parameter>--with-installed-readline</parameter></term>
52 <listitem>
53 <para>This option tells Bash to use the
54 <filename class="libraryfile">readline</filename> library that is
55 already installed on the system rather than using its own readline
56 version.</para>
57 </listitem>
58 </varlistentry>
59 </variablelist>
60
61 <para os="j">Compile the package:</para>
62
63<screen os="k"><userinput>make</userinput></screen>
64
65 <para os="l">To test the results, issue:
66 <userinput>make tests</userinput>.</para>
67
68 <para os="m">Install the package:</para>
69
70<screen os="n"><userinput>make htmldir=/usr/share/doc/bash-&bash-version; install</userinput></screen>
71
72 <para os="o">Run the newly compiled <command>bash</command> program (replacing
73 the one that is currently being executed):</para>
74
75<screen os="p" role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
76
77 <note os="q">
78 <para>The parameters used make the <command>bash</command>
79 process an interactive login shell and continue to disable hashing so
80 that new programs are found as they become available.</para>
81 </note>
82
83 </sect2>
84
85 <sect2 id="contents-bash" role="content">
86 <title>Contents of Bash</title>
87
88 <segmentedlist>
89 <segtitle>Installed programs</segtitle>
90
91 <seglistitem>
92 <seg>bash, bashbug, and sh (link to bash)</seg>
93 </seglistitem>
94 </segmentedlist>
95
96 <variablelist>
97 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
98 <?dbfo list-presentation="list"?>
99 <?dbhtml list-presentation="table"?>
100
101 <varlistentry id="bash">
102 <term><command>bash</command></term>
103 <listitem>
104 <para>A widely-used command interpreter; it performs many types of
105 expansions and substitutions on a given command line before executing
106 it, thus making this interpreter a powerful tool</para>
107 <indexterm zone="ch-system-bash bash">
108 <primary sortas="b-bash">bash</primary>
109 </indexterm>
110 </listitem>
111 </varlistentry>
112
113 <varlistentry id="bashbug">
114 <term><command>bashbug</command></term>
115 <listitem>
116 <para>A shell script to help the user compose and mail standard
117 formatted bug reports concerning <command>bash</command></para>
118 <indexterm zone="ch-system-bash bashbug">
119 <primary sortas="b-bashbug">bashbug</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="sh">
125 <term><command>sh</command></term>
126 <listitem>
127 <para>A symlink to the <command>bash</command> program; when invoked
128 as <command>sh</command>, <command>bash</command> tries to mimic the
129 startup behavior of historical versions of <command>sh</command> as
130 closely as possible, while conforming to the POSIX standard as
131 well</para>
132 <indexterm zone="ch-system-bash sh">
133 <primary sortas="b-sh">sh</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 </variablelist>
139
140 </sect2>
141
142</sect1>
Note: See TracBrowser for help on using the repository browser.