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

Last change on this file since 5fe131b was c9f1b1b, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Text update.

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