source: BOOK/final-system/common/bash.xml@ dbf61b7

clfs-3.0.0-systemd systemd
Last change on this file since dbf61b7 was 686839b, checked in by William Harrington <kb0iic@…>, 11 years ago

Add screen tags around userinput test commands and remap userinput for test commands as remap="test".

  • Property mode set to 100644
File size: 4.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-bash" role="wrap">
9 <?dbhtml filename="bash.html"?>
10
11 <title>Bash-&bash-version;</title>
12
13 <indexterm zone="ch-system-bash">
14 <primary sortas="a-Bash">Bash</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bash package contains the Bourne-Again SHell.</para>
21
22 </sect2>
23
24 <sect2 role="installation">
25 <title>Installation of Bash</title>
26
27 <para os="p1">The following patch contains updates from the maintainer. The
28 maintainer of Bash only releases these patches to fix serious issues:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&bash-branch_update-patch;</userinput></screen>
31
32 <para os="a">Prepare Bash for compilation:</para>
33
34<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin \
35 --without-bash-malloc --with-installed-readline</userinput></screen>
36
37 <variablelist os="c">
38 <title>The meaning of the configure option:</title>
39
40 <varlistentry>
41 <term><parameter>--with-installed-readline</parameter></term>
42 <listitem>
43 <para>This option tells Bash to use the
44 <filename class="libraryfile">readline</filename> library that is
45 already installed on the system rather than using its own readline
46 version.</para>
47 </listitem>
48 </varlistentry>
49 </variablelist>
50
51 <para os="d">Compile the package:</para>
52
53<screen os="e"><userinput>make</userinput></screen>
54
55 <para os="f">To test the results, issue:</para>
56
57<screen os="f2"><userinput remap="test">make tests</userinput></screen>
58
59 <para os="g">Install the package:</para>
60
61<screen os="h"><userinput>make htmldir=/usr/share/doc/bash-&bash-version; install</userinput></screen>
62
63 <para os="i">Run the newly compiled <command>bash</command> program (replacing
64 the one that is currently being executed):</para>
65
66<screen os="j" role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
67
68 <note os="k">
69 <para>The parameters used make the <command>bash</command>
70 process an interactive login shell and continue to disable hashing so
71 that new programs are found as they become available.</para>
72 </note>
73
74 </sect2>
75
76 <sect2 id="contents-bash" role="content">
77 <title>Contents of Bash</title>
78
79 <segmentedlist>
80 <segtitle>Installed programs</segtitle>
81 <segtitle>Installed directory</segtitle>
82
83 <seglistitem>
84 <seg>bash, bashbug, and sh (link to bash)</seg>
85 <seg>/usr/share/doc/bash-&bash-version;</seg>
86 </seglistitem>
87 </segmentedlist>
88
89 <variablelist>
90 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
91 <?dbfo list-presentation="list"?>
92 <?dbhtml list-presentation="table"?>
93
94 <varlistentry id="bash">
95 <term><command>bash</command></term>
96 <listitem>
97 <para>A widely-used command interpreter; it performs many types of
98 expansions and substitutions on a given command line before executing
99 it, thus making this interpreter a powerful tool</para>
100 <indexterm zone="ch-system-bash bash">
101 <primary sortas="b-bash">bash</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="bashbug">
107 <term><command>bashbug</command></term>
108 <listitem>
109 <para>A shell script to help the user compose and mail standard
110 formatted bug reports concerning <command>bash</command></para>
111 <indexterm zone="ch-system-bash bashbug">
112 <primary sortas="b-bashbug">bashbug</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
117 <varlistentry id="sh">
118 <term><command>sh</command></term>
119 <listitem>
120 <para>A symlink to the <command>bash</command> program; when invoked
121 as <command>sh</command>, <command>bash</command> tries to mimic the
122 startup behavior of historical versions of <command>sh</command> as
123 closely as possible, while conforming to the POSIX standard as
124 well</para>
125 <indexterm zone="ch-system-bash sh">
126 <primary sortas="b-sh">sh</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 </variablelist>
132
133 </sect2>
134
135</sect1>
Note: See TracBrowser for help on using the repository browser.