source: clfs-sysroot/BOOK/final-system/common/bash.xml@ 43b38ea

Last change on this file since 43b38ea was c19433e, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Updated bash to 3.2.

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