bash.xml 3.4 KB

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