bash.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-bash" role="wrap">
  8. <?dbhtml filename="bash.html"?>
  9. <sect1info condition="script">
  10. <productname>bash</productname>
  11. <productnumber>&bash-version;</productnumber>
  12. <address>&bash-url;</address>
  13. </sect1info>
  14. <title>Bash-&bash-version;</title>
  15. <indexterm zone="ch-system-bash">
  16. <primary sortas="a-Bash">Bash</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Bash package contains the Bourne-Again SHell.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&bash-ch6-sbu;</seg>
  26. <seg>&bash-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Bash</title>
  32. <!--
  33. <para>Incorporate some upstream fixes:</para>
  34. <screen><userinput remap="pre">patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
  35. -->
  36. <para>Prepare Bash for compilation:</para>
  37. <screen><userinput remap="configure">./configure --prefix=/usr \
  38. --docdir=/usr/share/doc/bash-&bash-version; \
  39. --without-bash-malloc \
  40. --with-installed-readline</userinput></screen>
  41. <variablelist>
  42. <title>The meaning of the new configure option:</title>
  43. <varlistentry>
  44. <term><parameter>--with-installed-readline</parameter></term>
  45. <listitem>
  46. <para>This option tells Bash to use the <filename
  47. class="libraryfile">readline</filename> library that is already
  48. installed on the system rather than using its own readline
  49. version.</para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. <para>Compile the package:</para>
  54. <screen><userinput remap="make">make</userinput></screen>
  55. <para>Skip down to <quote>Install the
  56. package</quote> if not running the test suite.</para>
  57. <para>To prepare the tests, ensure that the <systemitem class="username">nobody</systemitem> user can write to the sources tree:</para>
  58. <screen><userinput remap="test">chown -Rv nobody .</userinput></screen>
  59. <para>Now, run the tests as the <systemitem
  60. class="username">nobody</systemitem> user:</para>
  61. <screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH HOME=/home make tests"</userinput></screen>
  62. <para>Install the package and move the main executable to
  63. <filename class='directory'>/bin</filename>:</para>
  64. <screen><userinput remap="install">make install
  65. mv -vf /usr/bin/bash /bin</userinput></screen>
  66. <para>Run the newly compiled <command>bash</command> program (replacing the one that is
  67. currently being executed):</para>
  68. <screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
  69. <note>
  70. <para>The parameters used make the <command>bash</command>
  71. process an interactive login shell and continue to disable hashing so
  72. that new programs are found as they become available.</para>
  73. </note>
  74. </sect2>
  75. <sect2 id="contents-bash" role="content">
  76. <title>Contents of Bash</title>
  77. <segmentedlist>
  78. <segtitle>Installed programs</segtitle>
  79. <segtitle>Installed directory</segtitle>
  80. <seglistitem>
  81. <seg>bash, bashbug, and sh (link to bash)</seg>
  82. <seg>/usr/include/bash, /usr/lib/bash, and
  83. /usr/share/doc/bash-&bash-version;</seg>
  84. </seglistitem>
  85. </segmentedlist>
  86. <variablelist>
  87. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  88. <?dbfo list-presentation="list"?>
  89. <?dbhtml list-presentation="table"?>
  90. <varlistentry id="bash">
  91. <term><command>bash</command></term>
  92. <listitem>
  93. <para>A widely-used command interpreter; it performs many types of
  94. expansions and substitutions on a given command line before executing
  95. it, thus making this interpreter a powerful tool</para>
  96. <indexterm zone="ch-system-bash bash">
  97. <primary sortas="b-bash">bash</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="bashbug">
  102. <term><command>bashbug</command></term>
  103. <listitem>
  104. <para>A shell script to help the user compose and mail standard
  105. formatted bug reports concerning <command>bash</command></para>
  106. <indexterm zone="ch-system-bash bashbug">
  107. <primary sortas="b-bashbug">bashbug</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="sh">
  112. <term><command>sh</command></term>
  113. <listitem>
  114. <para>A symlink to the <command>bash</command> program; when invoked
  115. as <command>sh</command>, <command>bash</command> tries to mimic the
  116. startup behavior of historical versions of <command>sh</command> as
  117. closely as possible, while conforming to the POSIX standard as
  118. well</para>
  119. <indexterm zone="ch-system-bash sh">
  120. <primary sortas="b-sh">sh</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. </variablelist>
  125. </sect2>
  126. </sect1>