glfs/postlfs/shells/dash.xml
Bruce Dubbs eef74abe52 Tags for postlfs, general libraries, and programming
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24259 af4574ff-66df-0310-9fd7-8a98e5e911e0
2021-02-22 01:43:43 +00:00

221 lines
6.0 KiB
XML

<?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 " ">
<!ENTITY dash-md5sum "c7016b513f701d88c70b3082eb183581">
<!ENTITY dash-size "240 KB">
<!ENTITY dash-buildsize "3.7 MB">
<!ENTITY dash-time "less than 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>
&lfs101_checked;
<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">Dash Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<ulink url="http://www.thrysoee.dk/editline/">libedit</ulink>
(command line editor library)
</para>
<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>./configure --bindir=/bin --mandir=/usr/share/man &amp;&amp;
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>
<note>
<para>
If you create the symbolic link from <command>dash</command>
to <command>sh</command>, you will need to reset the link to
<command>bash</command> to build LFS.
</para>
</note>
<screen role="nodump"><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>
<option>--with-libedit</option>: To compile
<application>Dash</application> with libedit support.
</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>~/.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-AA.profile">~/.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>