bash.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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>Bash has a number of bugs in it that cause it to not behave the
  26. way it is expected at times. Fix this behavior with the following
  27. patch:</para>
  28. <screen><userinput>patch -Np1 -i ../bash-&bash-version;-gnu_fixes-2.patch</userinput></screen>
  29. <para>Now prepare Bash for compilation:</para>
  30. <screen><userinput>./configure --prefix=/usr --bindir=/bin \
  31. --without-bash-malloc --with-installed-readline</userinput></screen>
  32. <para>Compile the package:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>To test the results, issue:
  35. <userinput>make tests</userinput>.</para>
  36. <para>Install the package:</para>
  37. <screen><userinput>make install</userinput></screen>
  38. <para>Now run the newly compiled <command>bash</command> program (replacing the one you are currently executing):</para>
  39. <screen><userinput>exec /bin/bash --login +h</userinput></screen>
  40. <note><para>The parameters used make it an interactive login instance
  41. (so <filename>/etc/profile</filename> is read, if it exists, and the first found
  42. <filename>~/.bash_profile</filename>, <filename>~/.bash_login</filename> or
  43. and <filename>~/.profile</filename>) and continue to
  44. disable hashing so that new programs are found as they become
  45. available.</para></note>
  46. </sect2>
  47. <sect2 id="contents-bash" role="content"><title>Contents of Bash</title>
  48. <segmentedlist>
  49. <segtitle>Installed programs</segtitle>
  50. <seglistitem><seg>bash, sh (link to bash) and bashbug</seg></seglistitem>
  51. </segmentedlist>
  52. <variablelist><title>Short descriptions</title>
  53. <varlistentry id="bash">
  54. <term><command>bash</command></term>
  55. <listitem>
  56. <indexterm zone="ch-system-bash bash"><primary sortas="b-bash">bash</primary></indexterm>
  57. <para>is a widely-used command interpreter. It
  58. performs many kinds of expansions and substitutions on a given command line
  59. before executing it, thus making this interpreter a powerful tool.</para>
  60. </listitem>
  61. </varlistentry>
  62. <varlistentry id="bashbug">
  63. <term><command>bashbug</command></term>
  64. <listitem>
  65. <indexterm zone="ch-system-bash bashbug"><primary sortas="b-bashbug">bashbug</primary></indexterm>
  66. <para>is a shell script to help the user
  67. compose and mail bug reports concerning <command>bash</command> in a standard format.</para>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry id="sh">
  71. <term><command>sh</command></term>
  72. <listitem>
  73. <indexterm zone="ch-system-bash sh"><primary sortas="b-sh">sh</primary></indexterm>
  74. <para>is a symlink to the bash program. When invoked
  75. as <command>sh</command>, <command>bash</command> tries to mimic the
  76. startup behavior of historical versions of <command>sh</command> as
  77. closely as possible, while conforming to the POSIX standard as well.</para>
  78. </listitem>
  79. </varlistentry>
  80. </variablelist>
  81. </sect2>
  82. </sect1>