source: postlfs/shells/dash.xml@ 67d0ff07

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 67d0ff07 was cfd4fa8, checked in by Bruce Dubbs <bdubbs@…>, 15 months ago

Tags

  • Property mode set to 100644
File size: 5.9 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 <!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 &lfs113_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 <para condition="html" role="usernotes">User Notes:
83 <ulink url="&blfs-wiki;/dash"/></para>
84
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of Dash</title>
89
90 <para>
91 Install <application>Dash</application> by running the following
92 commands:
93 </para>
94
95<screen><userinput>./configure --bindir=/bin --mandir=/usr/share/man &amp;&amp;
96make</userinput></screen>
97
98 <para>
99 This package does not come with a test suite.
100 </para>
101
102 <para>
103 Now, as the <systemitem class="username">root</systemitem> user:
104 </para>
105
106<screen role="root"><userinput>make install</userinput></screen>
107
108 <para>
109 If you would like to make <command>dash</command> the default
110 <command>sh</command>, recreate the <filename>/bin/sh</filename>
111 symlink as the <systemitem class="username">root</systemitem> user:
112 </para>
113
114 <note>
115 <para>
116 If you create the symbolic link from <command>dash</command>
117 to <command>sh</command>, you will need to reset the link to
118 <command>bash</command> to build LFS.
119 </para>
120 </note>
121
122<screen role="nodump"><userinput>ln -svf dash /bin/sh</userinput></screen>
123
124 </sect2>
125
126 <sect2 role="commands">
127 <title>Command Explanations</title>
128
129 <para>
130 <parameter>--bindir=/bin</parameter>: This parameter places the
131 <command>dash</command> binary into the root filesystem.
132 </para>
133
134 <para>
135 <option>--with-libedit</option>: To compile
136 <application>Dash</application> with libedit support.
137 </para>
138
139 </sect2>
140
141 <sect2 role="configuration">
142 <title>Configuring Dash</title>
143
144 <sect3 id="dash-config">
145 <title>Config Files</title>
146
147 <para>
148 <application>Dash</application> sources
149 <filename>/etc/profile</filename> and
150 <filename>~/.profile</filename>
151 </para>
152
153 <indexterm zone="dash dash-config">
154 <primary sortas="e-etc-profile">/etc/profile</primary>
155 </indexterm>
156
157 <indexterm zone="dash dash-config">
158 <primary sortas="e-AA.profile">~/.profile</primary>
159 </indexterm>
160
161 </sect3>
162
163 <sect3>
164 <title>Configuration Information</title>
165
166 <para>
167 Update <filename>/etc/shells</filename> to include the
168 <application>Dash</application> shell by issuing the following command
169 as the <systemitem class="username">root</systemitem> user:
170 </para>
171
172<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
173<literal>/bin/dash</literal>
174EOF</userinput></screen>
175
176 </sect3>
177
178 </sect2>
179
180 <sect2 role="content">
181 <title>Contents</title>
182
183 <segmentedlist>
184 <segtitle>Installed Program</segtitle>
185 <segtitle>Installed Libraries</segtitle>
186 <segtitle>Installed Directories</segtitle>
187
188 <seglistitem>
189 <seg>dash</seg>
190 <seg>None</seg>
191 <seg>None</seg>
192 </seglistitem>
193 </segmentedlist>
194
195 <variablelist>
196 <bridgehead renderas="sect3">Short Description</bridgehead>
197 <?dbfo list-presentation="list"?>
198 <?dbhtml list-presentation="table"?>
199
200 <varlistentry id="dash-prog">
201 <term><command>dash</command></term>
202 <listitem>
203 <para>
204 is a POSIX compliant shell
205 </para>
206 <indexterm zone="dash dash-prog">
207 <primary sortas="b-dash">dash</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 </variablelist>
213
214 </sect2>
215
216</sect1>
Note: See TracBrowser for help on using the repository browser.