[f41cad7d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[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 |
|
---|
[cfd4fa8] | 38 | &lfs113_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 | <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 |
|
---|
[47274444] | 90 | <para>
|
---|
| 91 | Install <application>Dash</application> by running the following
|
---|
| 92 | commands:
|
---|
| 93 | </para>
|
---|
[f41cad7d] | 94 |
|
---|
[8bf1fa88] | 95 | <screen><userinput>./configure --bindir=/bin --mandir=/usr/share/man &&
|
---|
| 96 | make</userinput></screen>
|
---|
[f41cad7d] | 97 |
|
---|
[47274444] | 98 | <para>
|
---|
| 99 | This package does not come with a test suite.
|
---|
| 100 | </para>
|
---|
[f41cad7d] | 101 |
|
---|
[47274444] | 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
[f41cad7d] | 105 |
|
---|
| 106 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 107 |
|
---|
[47274444] | 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>
|
---|
[be713ab] | 113 |
|
---|
[47274444] | 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>
|
---|
[305178d] | 121 |
|
---|
| 122 | <screen role="nodump"><userinput>ln -svf dash /bin/sh</userinput></screen>
|
---|
[be713ab] | 123 |
|
---|
[f41cad7d] | 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
[47274444] | 129 | <para>
|
---|
| 130 | <parameter>--bindir=/bin</parameter>: This parameter places the
|
---|
| 131 | <command>dash</command> binary into the root filesystem.
|
---|
| 132 | </para>
|
---|
[be713ab] | 133 |
|
---|
[47274444] | 134 | <para>
|
---|
| 135 | <option>--with-libedit</option>: To compile
|
---|
| 136 | <application>Dash</application> with libedit support.
|
---|
| 137 | </para>
|
---|
[be713ab] | 138 |
|
---|
[f41cad7d] | 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2 role="configuration">
|
---|
| 142 | <title>Configuring Dash</title>
|
---|
| 143 |
|
---|
| 144 | <sect3 id="dash-config">
|
---|
| 145 | <title>Config Files</title>
|
---|
| 146 |
|
---|
[47274444] | 147 | <para>
|
---|
| 148 | <application>Dash</application> sources
|
---|
| 149 | <filename>/etc/profile</filename> and
|
---|
| 150 | <filename>~/.profile</filename>
|
---|
| 151 | </para>
|
---|
[f41cad7d] | 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">
|
---|
[73dd9a12] | 158 | <primary sortas="e-AA.profile">~/.profile</primary>
|
---|
[f41cad7d] | 159 | </indexterm>
|
---|
| 160 |
|
---|
| 161 | </sect3>
|
---|
| 162 |
|
---|
| 163 | <sect3>
|
---|
| 164 | <title>Configuration Information</title>
|
---|
| 165 |
|
---|
[47274444] | 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>
|
---|
[f41cad7d] | 171 |
|
---|
| 172 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 173 | <literal>/bin/dash</literal>
|
---|
| 174 | EOF</userinput></screen>
|
---|
[fd7e0ed6] | 175 |
|
---|
[f41cad7d] | 176 | </sect3>
|
---|
| 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
| 180 | <sect2 role="content">
|
---|
| 181 | <title>Contents</title>
|
---|
| 182 |
|
---|
| 183 | <segmentedlist>
|
---|
[be713ab] | 184 | <segtitle>Installed Program</segtitle>
|
---|
[f41cad7d] | 185 | <segtitle>Installed Libraries</segtitle>
|
---|
| 186 | <segtitle>Installed Directories</segtitle>
|
---|
| 187 |
|
---|
| 188 | <seglistitem>
|
---|
| 189 | <seg>dash</seg>
|
---|
| 190 | <seg>None</seg>
|
---|
[81066706] | 191 | <seg>None</seg>
|
---|
[f41cad7d] | 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 |
|
---|
[28370fe] | 200 | <varlistentry id="dash-prog">
|
---|
[f41cad7d] | 201 | <term><command>dash</command></term>
|
---|
| 202 | <listitem>
|
---|
[47274444] | 203 | <para>
|
---|
[4c24eb0a] | 204 | is a POSIX compliant shell
|
---|
[47274444] | 205 | </para>
|
---|
[28370fe] | 206 | <indexterm zone="dash dash-prog">
|
---|
[f41cad7d] | 207 | <primary sortas="b-dash">dash</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | </variablelist>
|
---|
| 213 |
|
---|
| 214 | </sect2>
|
---|
| 215 |
|
---|
| 216 | </sect1>
|
---|