bash.xml 3.6 KB

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