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