[673b0d8] | 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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-bash" xreflabel="Bash" role="wrap">
|
---|
[673b0d8] | 7 | <title>Bash-&bash-version;</title>
|
---|
| 8 | <?dbhtml filename="bash.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-bash"><primary sortas="a-Bash">Bash</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Bash package contains the Bourne-Again SHell.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>1.2 SBU</seg><seg>27 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[673b0d8] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Bash installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Binutils, Coreutils, Diffutils, Gawk,
|
---|
| 24 | GCC, Glibc, Grep, Make, Ncurses, Sed.</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3554fa3a] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Bash</title>
|
---|
| 30 |
|
---|
[51504be] | 31 | <para>The following patch fixes various issues. Including a problem where Bash
|
---|
| 32 | sometimes will only show 33 characters on a line and then wraps to the next line.</para>
|
---|
[3a0c307] | 33 |
|
---|
[51504be] | 34 | <screen><userinput>patch -Np1 -i ../bash-&bash-version;-fixes-1.patch</userinput></screen>
|
---|
[3a0c307] | 35 |
|
---|
[cd0f519] | 36 | <para>Bash also has issues when compiled against newer versions of glibc. The
|
---|
| 37 | following patch resolves this problem:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>patch -Np1 -i ../bash-&bash-version;-avoid_WCONTINUED-1.patch</userinput></screen>
|
---|
| 40 |
|
---|
[e8d07afc] | 41 | <para>Prepare Bash for compilation:</para>
|
---|
[73aedd1d] | 42 |
|
---|
[9dfc02f] | 43 | <screen><userinput>./configure --prefix=/usr --bindir=/bin \
|
---|
[3125dfb] | 44 | --without-bash-malloc --with-installed-readline</userinput></screen>
|
---|
[73aedd1d] | 45 |
|
---|
| 46 | <para>Compile the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make</userinput></screen>
|
---|
| 49 |
|
---|
[673b0d8] | 50 | <para>To test the results, issue:
|
---|
[8a5f906] | 51 | <userinput>make tests</userinput>.</para>
|
---|
[73aedd1d] | 52 |
|
---|
| 53 | <para>Install the package:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput>make install</userinput></screen>
|
---|
| 56 |
|
---|
[673b0d8] | 57 | <para>Now run the newly compiled <command>bash</command> program (replacing the one you are currently executing):</para>
|
---|
| 58 |
|
---|
| 59 | <screen><userinput>exec /bin/bash --login +h</userinput></screen>
|
---|
[73aedd1d] | 60 |
|
---|
[3c928f1] | 61 | <note><para>The parameters used make it an interactive login instance
|
---|
| 62 | (so <filename>/etc/profile</filename> is read, if it exists, and the first found
|
---|
| 63 | <filename>~/.bash_profile</filename>, <filename>~/.bash_login</filename> or
|
---|
| 64 | and <filename>~/.profile</filename>) and continue to
|
---|
[673b0d8] | 65 | disable hashing so that new programs are found as they become
|
---|
[3c928f1] | 66 | available.</para></note>
|
---|
[73aedd1d] | 67 |
|
---|
| 68 | </sect2>
|
---|
[6370fa6] | 69 |
|
---|
[5888299] | 70 |
|
---|
[c6cb3aa] | 71 | <sect2 id="contents-bash" role="content"><title>Contents of Bash</title>
|
---|
[673b0d8] | 72 |
|
---|
[c6cb3aa] | 73 | <segmentedlist>
|
---|
| 74 | <segtitle>Installed programs</segtitle>
|
---|
| 75 | <seglistitem><seg>bash, sh (link to bash) and bashbug</seg></seglistitem>
|
---|
| 76 | </segmentedlist>
|
---|
[673b0d8] | 77 |
|
---|
[c6cb3aa] | 78 | <variablelist><title>Short descriptions</title>
|
---|
[73aedd1d] | 79 |
|
---|
[b8a819f] | 80 | <varlistentry id="bash">
|
---|
| 81 | <term><command>bash</command></term>
|
---|
[c6cb3aa] | 82 | <listitem>
|
---|
[673b0d8] | 83 | <indexterm zone="ch-system-bash bash"><primary sortas="b-bash">bash</primary></indexterm>
|
---|
[c6cb3aa] | 84 | <para>is a widely-used command interpreter. It
|
---|
[673b0d8] | 85 | performs many kinds of expansions and substitutions on a given command line
|
---|
| 86 | before executing it, thus making this interpreter a powerful tool.</para>
|
---|
[c6cb3aa] | 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
[673b0d8] | 89 |
|
---|
[b8a819f] | 90 | <varlistentry id="bashbug">
|
---|
| 91 | <term><command>bashbug</command></term>
|
---|
[c6cb3aa] | 92 | <listitem>
|
---|
[673b0d8] | 93 | <indexterm zone="ch-system-bash bashbug"><primary sortas="b-bashbug">bashbug</primary></indexterm>
|
---|
[c6cb3aa] | 94 | <para>is a shell script to help the user
|
---|
[3c928f1] | 95 | compose and mail bug reports concerning <command>bash</command> in a standard format.</para>
|
---|
[c6cb3aa] | 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
[673b0d8] | 98 |
|
---|
[b8a819f] | 99 | <varlistentry id="sh">
|
---|
| 100 | <term><command>sh</command></term>
|
---|
[c6cb3aa] | 101 | <listitem>
|
---|
[673b0d8] | 102 | <indexterm zone="ch-system-bash sh"><primary sortas="b-sh">sh</primary></indexterm>
|
---|
[c6cb3aa] | 103 | <para>is a symlink to the bash program. When invoked
|
---|
[3c928f1] | 104 | as <command>sh</command>, <command>bash</command> tries to mimic the
|
---|
| 105 | startup behavior of historical versions of <command>sh</command> as
|
---|
[673b0d8] | 106 | closely as possible, while conforming to the POSIX standard as well.</para>
|
---|
[c6cb3aa] | 107 | </listitem>
|
---|
| 108 | </varlistentry>
|
---|
| 109 | </variablelist>
|
---|
[673b0d8] | 110 |
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | </sect1>
|
---|