source: postlfs/shells/dash.xml

trunk
Last change on this file was 868811b, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Many tags.
genutils
sysutils
netlibs
netprogs
netutils
editors
filesystems
shells

  • Property mode set to 100644
File size: 5.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <!ENTITY dash-download-http "http://gondor.apana.org.au/~herbert/dash/files/dash-&dash-version;.tar.gz">
8 <!ENTITY dash-download-ftp " ">
9 <!ENTITY dash-md5sum "57222b768b84003ea4b801e5d5e0e52b">
10 <!ENTITY dash-size "244 KB">
11 <!ENTITY dash-buildsize "2.9 MB">
12 <!ENTITY dash-time "less than 0.1 SBU">
13]>
14
15<sect1 id="dash" xreflabel="Dash-&dash-version;">
16 <?dbhtml filename="dash.html"?>
17
18
19 <title>Dash-&dash-version;</title>
20
21 <indexterm zone="dash">
22 <primary sortas="a-Dash">Dash</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Dash</title>
27
28 <para>
29 <application>Dash</application> is a POSIX compliant shell. It can be
30 installed as /bin/sh or as the default shell for either <systemitem
31 class="username">root</systemitem> or a second user with a userid of 0.
32 It depends on fewer libraries than the <application>Bash</application>
33 shell and is therefore less likely to be affected by an upgrade problem
34 or disk failure. <application>Dash</application> is also useful for
35 checking that a script is completely compatible with POSIX syntax.
36 </para>
37
38 &lfs121_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&dash-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&dash-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &dash-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &dash-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &dash-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &dash-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Dash Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <ulink url="https://www.thrysoee.dk/editline/">libedit</ulink>
79 (command line editor library)
80 </para>
81
82
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of Dash</title>
87
88 <para>
89 Install <application>Dash</application> by running the following
90 commands:
91 </para>
92
93<screen><userinput>./configure --bindir=/bin --mandir=/usr/share/man &amp;&amp;
94make</userinput></screen>
95
96 <para>
97 This package does not come with a test suite.
98 </para>
99
100 <para>
101 Now, as the <systemitem class="username">root</systemitem> user:
102 </para>
103
104<screen role="root"><userinput>make install</userinput></screen>
105
106 <para>
107 If you would like to make <command>dash</command> the default
108 <command>sh</command>, recreate the <filename>/bin/sh</filename>
109 symlink as the <systemitem class="username">root</systemitem> user:
110 </para>
111
112 <note>
113 <para>
114 If you create the symbolic link from <command>dash</command>
115 to <command>sh</command>, you will need to reset the link to
116 <command>bash</command> to build LFS.
117 </para>
118 </note>
119
120<screen role="nodump"><userinput>ln -svf dash /bin/sh</userinput></screen>
121
122 </sect2>
123
124 <sect2 role="commands">
125 <title>Command Explanations</title>
126
127 <para>
128 <parameter>--bindir=/bin</parameter>: This parameter places the
129 <command>dash</command> binary into the root filesystem.
130 </para>
131
132 <para>
133 <option>--with-libedit</option>: To compile
134 <application>Dash</application> with libedit support.
135 </para>
136
137 </sect2>
138
139 <sect2 role="configuration">
140 <title>Configuring Dash</title>
141
142 <sect3 id="dash-config">
143 <title>Config Files</title>
144
145 <para>
146 <application>Dash</application> sources
147 <filename>/etc/profile</filename> and
148 <filename>~/.profile</filename>
149 </para>
150
151 <indexterm zone="dash dash-config">
152 <primary sortas="e-etc-profile">/etc/profile</primary>
153 </indexterm>
154
155 <indexterm zone="dash dash-config">
156 <primary sortas="e-AA.profile">~/.profile</primary>
157 </indexterm>
158
159 </sect3>
160
161 <sect3>
162 <title>Configuration Information</title>
163
164 <para>
165 Update <filename>/etc/shells</filename> to include the
166 <application>Dash</application> shell by issuing the following command
167 as the <systemitem class="username">root</systemitem> user:
168 </para>
169
170<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
171<literal>/bin/dash</literal>
172EOF</userinput></screen>
173
174 </sect3>
175
176 </sect2>
177
178 <sect2 role="content">
179 <title>Contents</title>
180
181 <segmentedlist>
182 <segtitle>Installed Program</segtitle>
183 <segtitle>Installed Libraries</segtitle>
184 <segtitle>Installed Directories</segtitle>
185
186 <seglistitem>
187 <seg>dash</seg>
188 <seg>None</seg>
189 <seg>None</seg>
190 </seglistitem>
191 </segmentedlist>
192
193 <variablelist>
194 <bridgehead renderas="sect3">Short Description</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
197
198 <varlistentry id="dash-prog">
199 <term><command>dash</command></term>
200 <listitem>
201 <para>
202 is a POSIX compliant shell
203 </para>
204 <indexterm zone="dash dash-prog">
205 <primary sortas="b-dash">dash</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 </variablelist>
211
212 </sect2>
213
214</sect1>
Note: See TracBrowser for help on using the repository browser.