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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since dc47e4c was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

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