Added a few comments here and there
[linux_from_scratch.git] / BOOK / chapter06 / bash.xml
blobf7862db68d911697433a626b63ccc21415caba62
1 <sect1 id="ch-system-bash" xreflabel="Bash">
2 <title>Installing Bash-&bash-version;</title>
3 <?dbhtml filename="bash.html" dir="chapter06"?>
5 <para>The Bash package contains the Bourne-Again SHell.</para>
7 <screen>&buildtime; &bash-time;
8 &diskspace; &bash-compsize;</screen>
10 &aa-bash-down;
11 &aa-bash-dep;
13 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
15 <sect2>
16 <title>Installation of Bash</title>
18 <para>Bash has a number of bugs in it that cause it to not behave the 
19 way it is expected at times. Fix this behaviour with the following
20 patch:</para>
22 <screen><userinput>patch -Np1 -i ../&bash-patch;</userinput></screen>
24 <para>Now prepare Bash for compilation:</para>
26 <screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
28 <para>Compile the package:</para>
30 <screen><userinput>make</userinput></screen>
32 <para>This package has a test suite available which can perform a number of
33 checks to ensure it built correctly.  Should you choose to run it, the 
34 following command will do so:</para>
36 <screen><userinput>make tests</userinput></screen>
38 <para>Install the package:</para>
40 <screen><userinput>make install</userinput></screen>
42 <para>And reload the newly compiled <command>bash</command> program:</para>
44 <screen><userinput>exec /bin/bash --login +h</userinput></screen>
46 </sect2>
48 &aa-bash-shortdesc;
49 &aa-bash-desc;
51 </sect1>