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

systemd
Last change on this file since 0b5a445b was 8d55018, checked in by Chris Staub <chris@…>, 9 years ago

Prevent bashbug from being installed to /bin

  • Property mode set to 100644
File size: 4.7 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 \
35 --prefix=/usr \
36 --without-bash-malloc \
37 --with-installed-readline \
38 --docdir=/usr/share/doc/bash-&bash-version;</userinput></screen>
39
40 <variablelist os="c">
41 <title>The meaning of the new configure option:</title>
42
43 <varlistentry>
44 <term><parameter>--with-installed-readline</parameter></term>
45 <listitem>
46 <para>This option tells Bash to use the
47 <filename class="libraryfile">readline</filename> library that is
48 already installed on the system rather than using its own readline
49 version.</para>
50 </listitem>
51 </varlistentry>
52 </variablelist>
53
54 <para os="d">Compile the package:</para>
55
56<screen os="e"><userinput>make</userinput></screen>
57
58 <para os="f">To test the results, issue:</para>
59
60<screen os="f2"><userinput remap="test">make tests</userinput></screen>
61
62 <para os="g">Install the package:</para>
63
64<screen os="h"><userinput>make install</userinput></screen>
65
66 <para os="i">Move the <command>bash</command> binary to
67 <filename class="directory">/bin</filename>, overwriting the symlink
68 that was previously created:</para>
69
70<screen os="j"><userinput>mv -v /usr/bin/bash /bin</userinput></screen>
71
72 <para os="k">Run the newly compiled <command>bash</command> program (replacing
73 the one that is currently being executed):</para>
74
75<screen os="l" role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
76
77 <note os="m">
78 <para>The parameters used make the <command>bash</command>
79 process an interactive login shell and continue to disable hashing so
80 that new programs are found as they become available.</para>
81 </note>
82
83 </sect2>
84
85 <sect2 id="contents-bash" role="content">
86 <title>Contents of Bash</title>
87
88 <segmentedlist>
89 <segtitle>Installed programs</segtitle>
90 <segtitle>Installed directory</segtitle>
91
92 <seglistitem>
93 <seg>bash, bashbug, sh (link to bash)</seg>
94 <seg>/usr/share/doc/bash-&bash-version;</seg>
95 </seglistitem>
96 </segmentedlist>
97
98 <variablelist>
99 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
100 <?dbfo list-presentation="list"?>
101 <?dbhtml list-presentation="table"?>
102
103 <varlistentry id="bash">
104 <term><command>bash</command></term>
105 <listitem>
106 <para>A widely-used command interpreter; it performs many types of
107 expansions and substitutions on a given command line before executing
108 it, thus making this interpreter a powerful tool</para>
109 <indexterm zone="ch-system-bash bash">
110 <primary sortas="b-bash">bash</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry id="bashbug">
116 <term><command>bashbug</command></term>
117 <listitem>
118 <para>A shell script to help the user compose and mail standard
119 formatted bug reports concerning <command>bash</command></para>
120 <indexterm zone="ch-system-bash bashbug">
121 <primary sortas="b-bashbug">bashbug</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="sh">
127 <term><command>sh</command></term>
128 <listitem>
129 <para>A symlink to the <command>bash</command> program; when invoked
130 as <command>sh</command>, <command>bash</command> tries to mimic the
131 startup behavior of historical versions of <command>sh</command> as
132 closely as possible, while conforming to the POSIX standard as
133 well</para>
134 <indexterm zone="ch-system-bash sh">
135 <primary sortas="b-sh">sh</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 </variablelist>
141
142 </sect2>
143
144</sect1>
Note: See TracBrowser for help on using the repository browser.