source: BOOK/final-system/common/bash.xml@ 4ba982a3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 4ba982a3 was 3373dd11, checked in by Jim Gifford <clfs@…>, 19 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

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