lfs/chapter06/bash-inst.xml
2003-08-29 23:20:23 +00:00

39 lines
1.2 KiB
XML

<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of Bash</title>
<para>Bash has different default behavior when called as an interactive and
a non-interactive shell. It is possible to change this by opening the config-top.h file and commenting out the line:</para>
<para><filename>#define NON_INTERACTIVE_LOGIN_SHELLS</filename></para>
<para>Bash has a number of bugs in it that cause it to not behave the
way it is expected at times. Fix this behaviour with the following
patch:</para>
<para><screen><userinput>patch -Np1 -i ../bash-&bash-patch-version;.patch</userinput></screen></para>
<para>Prepare Bash for compilation:</para>
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen></para>
<para>Compile the package:</para>
<para><screen><userinput>make</userinput></screen></para>
<para>Test the results:</para>
<para><screen><userinput>make tests</userinput></screen></para>
<para>Install the package:</para>
<para><screen><userinput>make install</userinput></screen></para>
<para>And reload the newly compiled <userinput>bash</userinput> program:</para>
<para><screen><userinput>exec /bin/bash --login
set +h</userinput></screen></para>
</sect2>