bash.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-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>&dependencies;</segtitle>
  19. <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
  20. GCC, Glibc, Grep, Make, Ncurses, and Sed.</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Bash</title>
  25. <!-- Edit Me -->
  26. <para>The following patch fixes various issues, including a problem where Bash
  27. will sometimes only show 33 characters on a line, then wrap to the next:</para>
  28. <screen><userinput>patch -Np1 -i ../bash-&bash-version;-fixes-1.patch</userinput></screen>
  29. <para>Bash also has issues when compiled against newer versions of Glibc. The
  30. following patch resolves this problem:</para>
  31. <screen><userinput>patch -Np1 -i ../bash-&bash-version;-avoid_WCONTINUED-1.patch</userinput></screen>
  32. <para>Prepare Bash for compilation:</para>
  33. <screen><userinput>./configure --prefix=/usr --bindir=/bin \
  34. --without-bash-malloc --with-installed-readline</userinput></screen>
  35. <para>The meaning of the configure option:</para>
  36. <variablelist>
  37. <varlistentry>
  38. <term><parameter>--with-installed-readline</parameter></term>
  39. <listitem><para>This options tells Bash to use the
  40. <filename class="libraryfile">readline</filename> library that is already installed
  41. on the system rather than using its own readline version.</para></listitem>
  42. </varlistentry>
  43. </variablelist>
  44. <para>Compile the package:</para>
  45. <screen><userinput>make</userinput></screen>
  46. <para>To test the results, issue:
  47. <userinput>make tests</userinput>.</para>
  48. <para>Install the package:</para>
  49. <screen><userinput>make install</userinput></screen>
  50. <para>Run the newly compiled <command>bash</command> program (replacing the one that is
  51. currently being executed):</para>
  52. <screen><userinput>exec /bin/bash --login +h</userinput></screen>
  53. <note><para>The parameters used make the <command>bash</command>
  54. process an interactive login shell and continue to disable hashing so
  55. that new programs are found as they become available.</para></note>
  56. </sect2>
  57. <sect2 id="contents-bash" role="content"><title>Contents of Bash</title>
  58. <segmentedlist>
  59. <segtitle>Installed programs</segtitle>
  60. <seglistitem><seg>bash, bashbug, and sh (link to bash)</seg></seglistitem>
  61. </segmentedlist>
  62. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  63. <?dbfo list-presentation="list"?>
  64. <?dbhtml list-presentation="table"?>
  65. <varlistentry id="bash">
  66. <term><command>bash</command></term>
  67. <listitem>
  68. <para>A widely-used command interpreter; it performs many types of
  69. expansions and substitutions on a given command line before executing
  70. it, thus making this interpreter a powerful tool</para>
  71. <indexterm zone="ch-system-bash bash"><primary sortas="b-bash">bash</primary></indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="bashbug">
  75. <term><command>bashbug</command></term>
  76. <listitem>
  77. <para>A shell script to help the user compose and mail bug reports
  78. concerning <command>bash</command> in a standard format</para>
  79. <indexterm zone="ch-system-bash bashbug"><primary sortas="b-bashbug">bashbug</primary></indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="sh">
  83. <term><command>sh</command></term>
  84. <listitem>
  85. <para>A symlink to the <command>bash</command> program; when invoked
  86. as <command>sh</command>, <command>bash</command> tries to mimic the
  87. startup behavior of historical versions of <command>sh</command> as
  88. closely as possible, while conforming to the POSIX standard as well</para>
  89. <indexterm zone="ch-system-bash sh"><primary sortas="b-sh">sh</primary></indexterm>
  90. </listitem>
  91. </varlistentry>
  92. </variablelist>
  93. </sect2>
  94. </sect1>