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
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[f41cad7d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[be713ab]7 <!ENTITY dash-download-http "http://gondor.apana.org.au/~herbert/dash/files/dash-&dash-version;.tar.gz">
[7f0dfb9]8 <!ENTITY dash-download-ftp " ">
[209472f4]9 <!ENTITY dash-md5sum "57222b768b84003ea4b801e5d5e0e52b">
10 <!ENTITY dash-size "244 KB">
11 <!ENTITY dash-buildsize "2.9 MB">
[0a3a184]12 <!ENTITY dash-time "less than 0.1 SBU">
[f41cad7d]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
[47274444]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>
[f41cad7d]37
[868811b]38 &lfs121_checked;
[f41cad7d]39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[47274444]43 <para>
44 Download (HTTP): <ulink url="&dash-download-http;"/>
45 </para>
[f41cad7d]46 </listitem>
[082392e6]47 <listitem>
[47274444]48 <para>
49 Download (FTP): <ulink url="&dash-download-ftp;"/>
50 </para>
[082392e6]51 </listitem>
[f41cad7d]52 <listitem>
[47274444]53 <para>
54 Download MD5 sum: &dash-md5sum;
55 </para>
[f41cad7d]56 </listitem>
57 <listitem>
[47274444]58 <para>
59 Download size: &dash-size;
60 </para>
[f41cad7d]61 </listitem>
62 <listitem>
[47274444]63 <para>
64 Estimated disk space required: &dash-buildsize;
65 </para>
[f41cad7d]66 </listitem>
67 <listitem>
[47274444]68 <para>
69 Estimated build time: &dash-time;
70 </para>
[f41cad7d]71 </listitem>
72 </itemizedlist>
73
[8bf1fa88]74 <bridgehead renderas="sect3">Dash Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
[47274444]77 <para role="optional">
[cd29bc9]78 <ulink url="https://www.thrysoee.dk/editline/">libedit</ulink>
[47274444]79 (command line editor library)
80 </para>
[be713ab]81
[f41cad7d]82
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of Dash</title>
87
[47274444]88 <para>
89 Install <application>Dash</application> by running the following
90 commands:
91 </para>
[f41cad7d]92
[8bf1fa88]93<screen><userinput>./configure --bindir=/bin --mandir=/usr/share/man &amp;&amp;
94make</userinput></screen>
[f41cad7d]95
[47274444]96 <para>
97 This package does not come with a test suite.
98 </para>
[f41cad7d]99
[47274444]100 <para>
101 Now, as the <systemitem class="username">root</systemitem> user:
102 </para>
[f41cad7d]103
104<screen role="root"><userinput>make install</userinput></screen>
105
[47274444]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>
[be713ab]111
[47274444]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>
[305178d]119
120<screen role="nodump"><userinput>ln -svf dash /bin/sh</userinput></screen>
[be713ab]121
[f41cad7d]122 </sect2>
123
124 <sect2 role="commands">
125 <title>Command Explanations</title>
126
[47274444]127 <para>
128 <parameter>--bindir=/bin</parameter>: This parameter places the
129 <command>dash</command> binary into the root filesystem.
130 </para>
[be713ab]131
[47274444]132 <para>
133 <option>--with-libedit</option>: To compile
134 <application>Dash</application> with libedit support.
135 </para>
[be713ab]136
[f41cad7d]137 </sect2>
138
139 <sect2 role="configuration">
140 <title>Configuring Dash</title>
141
142 <sect3 id="dash-config">
143 <title>Config Files</title>
144
[47274444]145 <para>
146 <application>Dash</application> sources
147 <filename>/etc/profile</filename> and
148 <filename>~/.profile</filename>
149 </para>
[f41cad7d]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">
[73dd9a12]156 <primary sortas="e-AA.profile">~/.profile</primary>
[f41cad7d]157 </indexterm>
158
159 </sect3>
160
161 <sect3>
162 <title>Configuration Information</title>
163
[47274444]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>
[f41cad7d]169
170<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
171<literal>/bin/dash</literal>
172EOF</userinput></screen>
[fd7e0ed6]173
[f41cad7d]174 </sect3>
175
176 </sect2>
177
178 <sect2 role="content">
179 <title>Contents</title>
180
181 <segmentedlist>
[be713ab]182 <segtitle>Installed Program</segtitle>
[f41cad7d]183 <segtitle>Installed Libraries</segtitle>
184 <segtitle>Installed Directories</segtitle>
185
186 <seglistitem>
187 <seg>dash</seg>
188 <seg>None</seg>
[81066706]189 <seg>None</seg>
[f41cad7d]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
[28370fe]198 <varlistentry id="dash-prog">
[f41cad7d]199 <term><command>dash</command></term>
200 <listitem>
[47274444]201 <para>
[4c24eb0a]202 is a POSIX compliant shell
[47274444]203 </para>
[28370fe]204 <indexterm zone="dash dash-prog">
[f41cad7d]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.