bash.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make,
  28. Ncurses, 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>Prepare Bash for compilation:</para>
  40. <screen><userinput>./configure --prefix=/usr --bindir=/bin \
  41. --without-bash-malloc --with-installed-readline</userinput></screen>
  42. <variablelist>
  43. <title>The meaning of the configure options:</title>
  44. <varlistentry>
  45. <term><parameter>--with-installed-readline</parameter></term>
  46. <listitem>
  47. <para>This option tells Bash to use the <filename
  48. class="libraryfile">readline</filename> library that is already
  49. installed on the system rather than using its own readline
  50. version.</para>
  51. </listitem>
  52. </varlistentry>
  53. </variablelist>
  54. <para>Compile the package:</para>
  55. <screen><userinput>make</userinput></screen>
  56. <para>To test the results, issue:
  57. <userinput>make tests</userinput>.</para>
  58. <para>Install the package:</para>
  59. <screen><userinput>make install</userinput></screen>
  60. <para>Run the newly compiled <command>bash</command> program (replacing the one that is
  61. currently being executed):</para>
  62. <screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
  63. <note>
  64. <para>The parameters used make the <command>bash</command>
  65. process an interactive login shell and continue to disable hashing so
  66. that new programs are found as they become available.</para>
  67. </note>
  68. </sect2>
  69. <sect2 id="contents-bash" role="content">
  70. <title>Contents of Bash</title>
  71. <segmentedlist>
  72. <segtitle>Installed programs</segtitle>
  73. <seglistitem>
  74. <seg>bash, bashbug, and sh (link to bash)</seg>
  75. </seglistitem>
  76. </segmentedlist>
  77. <variablelist>
  78. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  79. <?dbfo list-presentation="list"?>
  80. <?dbhtml list-presentation="table"?>
  81. <varlistentry id="bash">
  82. <term><command>bash</command></term>
  83. <listitem>
  84. <para>A widely-used command interpreter; it performs many types of
  85. expansions and substitutions on a given command line before executing
  86. it, thus making this interpreter a powerful tool</para>
  87. <indexterm zone="ch-system-bash bash">
  88. <primary sortas="b-bash">bash</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="bashbug">
  93. <term><command>bashbug</command></term>
  94. <listitem>
  95. <para>A shell script to help the user compose and mail standard
  96. formatted bug reports concerning <command>bash</command></para>
  97. <indexterm zone="ch-system-bash bashbug">
  98. <primary sortas="b-bashbug">bashbug</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="sh">
  103. <term><command>sh</command></term>
  104. <listitem>
  105. <para>A symlink to the <command>bash</command> program; when invoked
  106. as <command>sh</command>, <command>bash</command> tries to mimic the
  107. startup behavior of historical versions of <command>sh</command> as
  108. closely as possible, while conforming to the POSIX standard as
  109. well</para>
  110. <indexterm zone="ch-system-bash sh">
  111. <primary sortas="b-sh">sh</primary>
  112. </indexterm>
  113. </listitem>
  114. </varlistentry>
  115. </variablelist>
  116. </sect2>
  117. </sect1>