glfs/postlfs/shells/dash.xml

183 lines
5.7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY dash-download-http "http://gondor.apana.org.au/~herbert/dash/files/dash-&dash-version;.tar.gz">
<!ENTITY dash-download-ftp "ftp://ftp.debian.org/debian/pool/main/d/dash/dash_&dash-version;.orig.tar.gz">
<!ENTITY dash-md5sum "1a3cd6669459be4344ec55ec9d4914f8">
<!ENTITY dash-size "200 KB">
<!ENTITY dash-buildsize "1.8 MB">
<!ENTITY dash-time "0.1 SBU">
]>
<sect1 id="dash" xreflabel="Dash-&dash-version;">
<?dbhtml filename="dash.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>Dash-&dash-version;</title>
<indexterm zone="dash">
<primary sortas="a-Dash">Dash</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Dash</title>
<para><application>Dash</application> is a POSIX compliant shell. It can be
installed as /bin/sh or as the default shell for either <systemitem
class="username">root</systemitem> or a second user with a userid of 0. It
depends on fewer libraries than the <application>Bash</application> shell
and is therefore less likely to be affected by an upgrade problem or disk
failure. <application>Dash</application> is also useful for checking that
a script is completely compatible with POSIX syntax.</para>
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&dash-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&dash-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &dash-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &dash-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &dash-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &dash-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing='compact'>
<listitem>
<para>Required Patch containing bug fixes from upstream: <ulink
url="&patch-root;/dash-&dash-version;-fixes-1.patch"/></para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/dash"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Dash</title>
<para>Install <application>Dash</application> by running the following
commands:</para>
<screen><userinput>patch -Np1 -i ../dash-&dash-version;-fixes-1.patch &amp;&amp;
./configure --bindir=/bin --mandir=/usr/share/man &amp;&amp;
LC_ALL=C make</userinput></screen>
<para>This package does not come with a test suite.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
<para>If you would like to make <command>dash</command> the default
<command>sh</command>, recreate the <filename>/bin/sh</filename>
symlink as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>ln -svf dash /bin/sh</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><parameter>--bindir=/bin</parameter>: This parameter places the
<command>dash</command> binary into the root filesystem.</para>
<para><command>LC_ALL=C make</command>: This ensures that the
<command>sort</command> command executed during the build process returns
the expected results.</para>
</sect2>
<sect2 role="configuration">
<title>Configuring Dash</title>
<sect3 id="dash-config">
<title>Config Files</title>
<para><application>Dash</application> sources
<filename>/etc/profile</filename> and
<filename>$HOME/.profile</filename></para>
<indexterm zone="dash dash-config">
<primary sortas="e-etc-profile">/etc/profile</primary>
</indexterm>
<indexterm zone="dash dash-config">
<primary sortas="e-AHOME-.profile">$HOME/.profile</primary>
</indexterm>
</sect3>
<sect3>
<title>Configuration Information</title>
<para>Update <filename>/etc/shells</filename> to include the
<application>Dash</application> shell by issuing the following command
as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
<literal>/bin/dash</literal>
EOF</userinput></screen>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Program</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>dash</seg>
<seg>None</seg>
<seg>None</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Description</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="Dash-prog">
<term><command>dash</command></term>
<listitem>
<para>is a POSIX compliant shell.</para>
<indexterm zone="dash Dash-prog">
<primary sortas="b-dash">dash</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>