source: clfs-sysroot/BOOK/final-system/common/bash.xml @ 713696e

Last change on this file since 713696e was 713696e, checked in by Joe Ciccone <jciccone@…>, 17 years ago

ac_cv_func_setvbuf_reversed does not need to be set in config.cache for bash anymore.

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