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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 860fee5 was 5b72bba, checked in by Jim Gifford <clfs@…>, 19 years ago

r953@server (orig r951): jim | 2005-12-22 00:47:27 -0800

r1172@server: jim | 2005-12-22 00:40:48 -0800
Added Readline Patch from Maintainer


001 - A problem with the readline callback interface can result in segmentation

faults when using the delete-char function via a multiple-key sequence.
Two consecutive calls to delete-char will crash the application calling
readline.




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