bash.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-bash" xreflabel="Bash" role="wrap">
  7. <title>Bash-&bash-version;</title>
  8. <?dbhtml filename="bash.html"?>
  9. <indexterm zone="ch-system-bash"><primary sortas="a-Bash">Bash</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Bash package contains the Bourne-Again SHell.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>1.2 SBU</seg><seg>27 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Bash installation depends on</segtitle>
  19. <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
  20. GCC, Glibc, Grep, Make, Ncurses, Sed.</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Bash</title>
  25. <para>The following patch fixes various issues. Including a problem where Bash
  26. sometimes will only show 33 characters on a line and then wraps to the next line.</para>
  27. <screen><userinput>patch -Np1 -i ../bash-&bash-version;-fixes-1.patch</userinput></screen>
  28. <para>Bash also has issues when compiled against newer versions of glibc. The
  29. following patch resolves this problem:</para>
  30. <screen><userinput>patch -Np1 -i ../bash-&bash-version;-avoid_WCONTINUED-1.patch</userinput></screen>
  31. <para>Prepare Bash for compilation:</para>
  32. <screen><userinput>./configure --prefix=/usr --bindir=/bin \
  33. --without-bash-malloc --with-installed-readline</userinput></screen>
  34. <para>Compile the package:</para>
  35. <screen><userinput>make</userinput></screen>
  36. <para>To test the results, issue:
  37. <userinput>make tests</userinput>.</para>
  38. <para>Install the package:</para>
  39. <screen><userinput>make install</userinput></screen>
  40. <para>Now run the newly compiled <command>bash</command> program (replacing the one you are currently executing):</para>
  41. <screen><userinput>exec /bin/bash --login +h</userinput></screen>
  42. <note><para>The parameters used make it an interactive login instance
  43. (so <filename>/etc/profile</filename> is read, if it exists, and the first found
  44. <filename>~/.bash_profile</filename>, <filename>~/.bash_login</filename> or
  45. and <filename>~/.profile</filename>) and continue to
  46. disable hashing so that new programs are found as they become
  47. available.</para></note>
  48. </sect2>
  49. <sect2 id="contents-bash" role="content"><title>Contents of Bash</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <seglistitem><seg>bash, sh (link to bash) and bashbug</seg></seglistitem>
  53. </segmentedlist>
  54. <variablelist><title>Short descriptions</title>
  55. <varlistentry id="bash">
  56. <term><command>bash</command></term>
  57. <listitem>
  58. <indexterm zone="ch-system-bash bash"><primary sortas="b-bash">bash</primary></indexterm>
  59. <para>is a widely-used command interpreter. It
  60. performs many kinds of expansions and substitutions on a given command line
  61. before executing it, thus making this interpreter a powerful tool.</para>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry id="bashbug">
  65. <term><command>bashbug</command></term>
  66. <listitem>
  67. <indexterm zone="ch-system-bash bashbug"><primary sortas="b-bashbug">bashbug</primary></indexterm>
  68. <para>is a shell script to help the user
  69. compose and mail bug reports concerning <command>bash</command> in a standard format.</para>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="sh">
  73. <term><command>sh</command></term>
  74. <listitem>
  75. <indexterm zone="ch-system-bash sh"><primary sortas="b-sh">sh</primary></indexterm>
  76. <para>is a symlink to the bash program. When invoked
  77. as <command>sh</command>, <command>bash</command> tries to mimic the
  78. startup behavior of historical versions of <command>sh</command> as
  79. closely as possible, while conforming to the POSIX standard as well.</para>
  80. </listitem>
  81. </varlistentry>
  82. </variablelist>
  83. </sect2>
  84. </sect1>