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