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