bash.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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. <title>Bash-&bash-version;</title>
  10. <indexterm zone="ch-system-bash">
  11. <primary sortas="a-Bash">Bash</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Bash package contains the Bourne-Again SHell.</para>
  16. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem>
  20. <seg>1.2 SBU</seg>
  21. <seg>24.6 MB</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. <segmentedlist>
  25. <segtitle>&dependencies;</segtitle>
  26. <seglistitem>
  27. <seg>Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep,
  28. Make, Ncurses, Readline, and Sed</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Bash</title>
  34. <para>If you downloaded the Bash documentation tarball and wish to install
  35. HTML documentation, issue the following commands:</para>
  36. <screen><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz &amp;&amp;
  37. sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
  38. Makefile.in</userinput></screen>
  39. <para>Upstream developers have fixed several issues since the initial
  40. release of Bash-&bash-version;. Apply those fixes:</para>
  41. <screen><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
  42. <para>Prepare Bash for compilation:</para>
  43. <screen><userinput>./configure --prefix=/usr --bindir=/bin \
  44. --without-bash-malloc --with-installed-readline</userinput></screen>
  45. <variablelist>
  46. <title>The meaning of the configure options:</title>
  47. <varlistentry>
  48. <term><parameter>--with-installed-readline</parameter></term>
  49. <listitem>
  50. <para>This option tells Bash to use the <filename
  51. class="libraryfile">readline</filename> library that is already
  52. installed on the system rather than using its own readline
  53. version.</para>
  54. </listitem>
  55. </varlistentry>
  56. </variablelist>
  57. <para>Compile the package:</para>
  58. <screen><userinput>make</userinput></screen>
  59. <para>To test the results, issue:
  60. <userinput>make tests</userinput>.</para>
  61. <para>Install the package:</para>
  62. <screen><userinput>make install</userinput></screen>
  63. <para>Run the newly compiled <command>bash</command> program (replacing the one that is
  64. currently being executed):</para>
  65. <screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
  66. <note>
  67. <para>The parameters used make the <command>bash</command>
  68. process an interactive login shell and continue to disable hashing so
  69. that new programs are found as they become available.</para>
  70. </note>
  71. </sect2>
  72. <sect2 id="contents-bash" role="content">
  73. <title>Contents of Bash</title>
  74. <segmentedlist>
  75. <segtitle>Installed programs</segtitle>
  76. <seglistitem>
  77. <seg>bash, bashbug, and sh (link to bash)</seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="bash">
  85. <term><command>bash</command></term>
  86. <listitem>
  87. <para>A widely-used command interpreter; it performs many types of
  88. expansions and substitutions on a given command line before executing
  89. it, thus making this interpreter a powerful tool</para>
  90. <indexterm zone="ch-system-bash bash">
  91. <primary sortas="b-bash">bash</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="bashbug">
  96. <term><command>bashbug</command></term>
  97. <listitem>
  98. <para>A shell script to help the user compose and mail standard
  99. formatted bug reports concerning <command>bash</command></para>
  100. <indexterm zone="ch-system-bash bashbug">
  101. <primary sortas="b-bashbug">bashbug</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="sh">
  106. <term><command>sh</command></term>
  107. <listitem>
  108. <para>A symlink to the <command>bash</command> program; when invoked
  109. as <command>sh</command>, <command>bash</command> tries to mimic the
  110. startup behavior of historical versions of <command>sh</command> as
  111. closely as possible, while conforming to the POSIX standard as
  112. well</para>
  113. <indexterm zone="ch-system-bash sh">
  114. <primary sortas="b-sh">sh</primary>
  115. </indexterm>
  116. </listitem>
  117. </varlistentry>
  118. </variablelist>
  119. </sect2>
  120. </sect1>