source: chapter06/bash.xml@ 9c9d585

Last change on this file since 9c9d585 was 1fe35e1, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter06/*.xml) RELAX NG validation fixes

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

  • Property mode set to 100644
File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-bash" xreflabel="Bash" role="wrap">
8<info><title>Bash-&bash-version;</title></info>
9<?dbhtml filename="bash.html"?>
10
11<indexterm zone="ch-system-bash"><primary sortas="a-Bash">Bash</primary></indexterm>
12
13<section role="package"><info><title/></info>
14<para>The Bash package contains the Bourne-Again SHell.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>1.2 SBU</seg><seg>27 MB</seg></seglistitem>
20</segmentedlist>
21
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>
27</section>
28
29<section role="installation">
30<info><title>Installation of Bash</title></info>
31
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>
34
35<screen><userinput>patch -Np1 -i ../bash-&bash-version;-fixes-1.patch</userinput></screen>
36
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
42<para>Prepare Bash for compilation:</para>
43
44<screen><userinput>./configure --prefix=/usr --bindir=/bin \
45 --without-bash-malloc --with-installed-readline</userinput></screen>
46
47<para>Compile the package:</para>
48
49<screen><userinput>make</userinput></screen>
50
51<para>To test the results, issue:
52<userinput>make tests</userinput>.</para>
53
54<para>Install the package:</para>
55
56<screen><userinput>make install</userinput></screen>
57
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>
61
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
66disable hashing so that new programs are found as they become
67available.</para></note>
68
69</section>
70
71
72<section xml:id="contents-bash" role="content"><info><title>Contents of Bash</title></info>
73
74<segmentedlist>
75<segtitle>Installed programs</segtitle>
76<seglistitem><seg>bash, sh (link to bash) and bashbug</seg></seglistitem>
77</segmentedlist>
78
79<variablelist><title>Short descriptions</title>
80
81<varlistentry xml:id="bash">
82<term><command>bash</command></term>
83<listitem>
84<indexterm zone="ch-system-bash bash"><primary sortas="b-bash">bash</primary></indexterm>
85<para>is a widely-used command interpreter. It
86performs many kinds of expansions and substitutions on a given command line
87before executing it, thus making this interpreter a powerful tool.</para>
88</listitem>
89</varlistentry>
90
91<varlistentry xml:id="bashbug">
92<term><command>bashbug</command></term>
93<listitem>
94<indexterm zone="ch-system-bash bashbug"><primary sortas="b-bashbug">bashbug</primary></indexterm>
95<para>is a shell script to help the user
96compose and mail bug reports concerning <command>bash</command> in a standard format.</para>
97</listitem>
98</varlistentry>
99
100<varlistentry xml:id="sh">
101<term><command>sh</command></term>
102<listitem>
103<indexterm zone="ch-system-bash sh"><primary sortas="b-sh">sh</primary></indexterm>
104<para>is a symlink to the bash program. When invoked
105as <command>sh</command>, <command>bash</command> tries to mimic the
106startup behavior of historical versions of <command>sh</command> as
107closely as possible, while conforming to the POSIX standard as well.</para>
108</listitem>
109</varlistentry>
110</variablelist>
111
112</section>
113
114</section>
Note: See TracBrowser for help on using the repository browser.