[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 " ">
|
---|
[8bf1fa88] | 9 | <!ENTITY dash-md5sum "bc457e490a589d2f87f2333616b67931">
|
---|
[f41cad7d] | 10 | <!ENTITY dash-size "200 KB">
|
---|
| 11 | <!ENTITY dash-buildsize "1.8 MB">
|
---|
| 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 |
|
---|
| 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&dash-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
[082392e6] | 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&dash-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
[f41cad7d] | 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &dash-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &dash-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &dash-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &dash-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
[8bf1fa88] | 64 | <bridgehead renderas="sect3">Dash Dependencies</bridgehead>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 67 | <para role="optional"><ulink url="http://www.thrysoee.dk/editline/">libedit</ulink>
|
---|
| 68 | (command line editor library)</para>
|
---|
[be713ab] | 69 |
|
---|
[f41cad7d] | 70 | <para condition="html" role="usernotes">User Notes:
|
---|
| 71 | <ulink url="&blfs-wiki;/dash"/></para>
|
---|
| 72 |
|
---|
| 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 | <sect2 role="installation">
|
---|
| 76 | <title>Installation of Dash</title>
|
---|
| 77 |
|
---|
| 78 | <para>Install <application>Dash</application> by running the following
|
---|
| 79 | commands:</para>
|
---|
| 80 |
|
---|
[8bf1fa88] | 81 | <screen><userinput>./configure --bindir=/bin --mandir=/usr/share/man &&
|
---|
| 82 | make</userinput></screen>
|
---|
[f41cad7d] | 83 |
|
---|
[be713ab] | 84 | <para>This package does not come with a test suite.</para>
|
---|
[f41cad7d] | 85 |
|
---|
| 86 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 87 |
|
---|
| 88 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 89 |
|
---|
[be713ab] | 90 | <para>If you would like to make <command>dash</command> the default
|
---|
| 91 | <command>sh</command>, recreate the <filename>/bin/sh</filename>
|
---|
| 92 | symlink as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 93 |
|
---|
| 94 | <screen role="root"><userinput>ln -svf dash /bin/sh</userinput></screen>
|
---|
| 95 |
|
---|
[f41cad7d] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="commands">
|
---|
| 99 | <title>Command Explanations</title>
|
---|
| 100 |
|
---|
| 101 | <para><parameter>--bindir=/bin</parameter>: This parameter places the
|
---|
| 102 | <command>dash</command> binary into the root filesystem.</para>
|
---|
[be713ab] | 103 |
|
---|
[8bf1fa88] | 104 | <para><option>--with-libedit</option>: To compile <application>Dash</application>
|
---|
| 105 | with libedit support.</para>
|
---|
[be713ab] | 106 |
|
---|
[f41cad7d] | 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="configuration">
|
---|
| 110 | <title>Configuring Dash</title>
|
---|
| 111 |
|
---|
| 112 | <sect3 id="dash-config">
|
---|
| 113 | <title>Config Files</title>
|
---|
| 114 |
|
---|
| 115 | <para><application>Dash</application> sources
|
---|
| 116 | <filename>/etc/profile</filename> and
|
---|
| 117 | <filename>$HOME/.profile</filename></para>
|
---|
| 118 |
|
---|
| 119 | <indexterm zone="dash dash-config">
|
---|
| 120 | <primary sortas="e-etc-profile">/etc/profile</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 |
|
---|
| 123 | <indexterm zone="dash dash-config">
|
---|
| 124 | <primary sortas="e-AHOME-.profile">$HOME/.profile</primary>
|
---|
| 125 | </indexterm>
|
---|
| 126 |
|
---|
| 127 | </sect3>
|
---|
| 128 |
|
---|
| 129 | <sect3>
|
---|
| 130 | <title>Configuration Information</title>
|
---|
| 131 |
|
---|
| 132 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
| 133 | <application>Dash</application> shell by issuing the following command
|
---|
| 134 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 135 |
|
---|
| 136 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 137 | <literal>/bin/dash</literal>
|
---|
| 138 | EOF</userinput></screen>
|
---|
| 139 |
|
---|
| 140 | </sect3>
|
---|
| 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
[be713ab] | 148 | <segtitle>Installed Program</segtitle>
|
---|
[f41cad7d] | 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
| 153 | <seg>dash</seg>
|
---|
| 154 | <seg>None</seg>
|
---|
[81066706] | 155 | <seg>None</seg>
|
---|
[f41cad7d] | 156 | </seglistitem>
|
---|
| 157 | </segmentedlist>
|
---|
| 158 |
|
---|
| 159 | <variablelist>
|
---|
| 160 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
| 161 | <?dbfo list-presentation="list"?>
|
---|
| 162 | <?dbhtml list-presentation="table"?>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="Dash-prog">
|
---|
| 165 | <term><command>dash</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>is a POSIX compliant shell.</para>
|
---|
| 168 | <indexterm zone="dash Dash-prog">
|
---|
| 169 | <primary sortas="b-dash">dash</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | </variablelist>
|
---|
| 175 |
|
---|
| 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | </sect1>
|
---|