source: chapter06/bash.xml@ 835892c

Last change on this file since 835892c was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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