bash-inst.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Bash</title>
  4. <para>Bash has different default behavior when called as an interactive and
  5. a non-interactive shell. It is possible to change this by opening the config-top.h file and commenting out the line:</para>
  6. <para><filename>#define NON_INTERACTIVE_LOGIN_SHELLS</filename></para>
  7. <para>Bash has a number of bugs in it that cause it to not behave the
  8. way it is expected at times. Fix this behaviour with the following
  9. patch:</para>
  10. <para><screen><userinput>patch -Np1 -i ../bash-&bash-patch-version;.patch</userinput></screen></para>
  11. <para>Prepare Bash to be compiled:</para>
  12. <para><screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen></para>
  13. <para>Continue with compiling the package:</para>
  14. <para><screen><userinput>make</userinput></screen></para>
  15. <para><screen><userinput>make tests</userinput></screen></para>
  16. <para>And finish off installing the package:</para>
  17. <para><screen><userinput>make install</userinput></screen></para>
  18. <para>Reload the newly compiled Bash:</para>
  19. <para><screen><userinput>exec /bin/bash --login
  20. set +h</userinput></screen></para>
  21. </sect2>