[44f085a] | 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" [
|
---|
[44f085a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[f39a33c] | 7 | <!ENTITY ash-download-http " ">
|
---|
[ef66b4c] | 8 | <!ENTITY ash-download-ftp "ftp://slackware.mirrors.tds.net/pub/slackware/slackware_source/ap/ash/ash-&ash-version;.tar.gz">
|
---|
[89eb3f6b] | 9 | <!ENTITY ash-md5sum "1c59f5b62a081cb0cb3b053c01d79529">
|
---|
| 10 | <!ENTITY ash-size "118 KB">
|
---|
| 11 | <!ENTITY ash-buildsize "2.2 MB">
|
---|
| 12 | <!ENTITY ash-time "less than 0.1 SBU">
|
---|
[44f085a] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="ash" xreflabel="ASH-&ash-version;">
|
---|
[f39a33c] | 16 | <?dbhtml filename="ash.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>ASH-&ash-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="ash">
|
---|
| 22 | <primary sortas="a-ASH">ASH</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to ASH</title>
|
---|
| 27 |
|
---|
| 28 | <para><command>ash</command> is a shell that is the most compliant with
|
---|
| 29 | the Bourne Shell (not to be confused with Bourne Again SHell i.e.,
|
---|
| 30 | <application>Bash</application> installed in LFS) without any additional
|
---|
| 31 | features. Bourne Shell is available on most commercial UNIX systems.
|
---|
| 32 | Hence <command>ash</command> is useful for testing scripts to be
|
---|
[a4e5c39] | 33 | <command>sh</command>-compliant. It also has small memory and space
|
---|
[f39a33c] | 34 | requirements compared to the other <command>sh</command>-compliant
|
---|
| 35 | shells.</para>
|
---|
| 36 |
|
---|
[a4b9cd7] | 37 | <caution>
|
---|
| 38 | <para><application>Ash</application> has problems with command line
|
---|
| 39 | editing in multibyte locales. The issue is discussed in more detail
|
---|
| 40 | in the <xref linkend="locale-wrong-multibyte-characters"/> section
|
---|
| 41 | of the <xref linkend="locale-issues"/> page.</para>
|
---|
| 42 | </caution>
|
---|
| 43 |
|
---|
[f39a33c] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (HTTP): <ulink url="&ash-download-http;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download (FTP): <ulink url="&ash-download-ftp;"/></para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download MD5 sum: &ash-md5sum;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download size: &ash-size;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated disk space required: &ash-buildsize;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Estimated build time: &ash-time;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 67 | <itemizedlist spacing='compact'>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>Required Patch: <ulink
|
---|
[59ddef1] | 70 | url="&patch-root;/ash-&ash-version;-cumulative_fixes-2.patch"/></para>
|
---|
[f39a33c] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[3597eb6] | 74 | <para condition="html" role="usernotes">User Notes:
|
---|
| 75 | <ulink url="&blfs-wiki;/ash"/></para>
|
---|
| 76 |
|
---|
[f39a33c] | 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of ASH</title>
|
---|
| 81 |
|
---|
| 82 | <para>Install <application>ASH</application> by running the following
|
---|
| 83 | commands:</para>
|
---|
| 84 |
|
---|
[89eb3f6b] | 85 | <screen><userinput>patch -Np1 -i ../ash-0.4.0-cumulative_fixes-2.patch &&
|
---|
[f39a33c] | 86 | make</userinput></screen>
|
---|
| 87 |
|
---|
[ef66b4c] | 88 | <para>This package does not come with a test suite.</para>
|
---|
| 89 |
|
---|
[f39a33c] | 90 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 91 |
|
---|
[a4e5c39] | 92 | <screen role="root"><userinput>install -v -m 755 sh /bin/ash &&
|
---|
| 93 | install -v -m 644 sh.1 /usr/share/man/man1/ash.1</userinput></screen>
|
---|
[f39a33c] | 94 |
|
---|
| 95 | <para>If you would like to make <command>ash</command> the default
|
---|
[89eb3f6b] | 96 | <command>sh</command> shell, make a symlink.</para>
|
---|
[f39a33c] | 97 |
|
---|
| 98 | <screen role="root"><userinput>ln -v -sf ash /bin/sh</userinput></screen>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="configuration">
|
---|
| 103 | <title>Configuring ASH</title>
|
---|
| 104 |
|
---|
| 105 | <sect3 id="ash-config">
|
---|
| 106 | <title>Config Files</title>
|
---|
| 107 |
|
---|
| 108 | <para><application>ASH</application> sources
|
---|
| 109 | <filename>/etc/profile</filename> and
|
---|
| 110 | <filename>$HOME/.profile</filename></para>
|
---|
| 111 |
|
---|
| 112 | <indexterm zone="ash ash-config">
|
---|
| 113 | <primary sortas="e-etc-profile">/etc/profile</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 |
|
---|
| 116 | <indexterm zone="ash ash-config">
|
---|
| 117 | <primary sortas="e-AHOME-.profile">$HOME/.profile</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 |
|
---|
| 120 | </sect3>
|
---|
| 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="content">
|
---|
| 125 | <title>Contents</title>
|
---|
| 126 |
|
---|
| 127 | <segmentedlist>
|
---|
| 128 | <segtitle>Installed Program</segtitle>
|
---|
| 129 | <segtitle>Installed Libraries</segtitle>
|
---|
| 130 | <segtitle>Installed Directories</segtitle>
|
---|
| 131 |
|
---|
| 132 | <seglistitem>
|
---|
| 133 | <seg>ash</seg>
|
---|
| 134 | <seg>None</seg>
|
---|
| 135 | <seg>None</seg>
|
---|
| 136 | </seglistitem>
|
---|
| 137 | </segmentedlist>
|
---|
| 138 |
|
---|
| 139 | <variablelist>
|
---|
| 140 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
| 141 | <?dbfo list-presentation="list"?>
|
---|
| 142 | <?dbhtml list-presentation="table"?>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="ash-prog">
|
---|
| 145 | <term><command>ash</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>is a <command>sh</command>-compliant shell.</para>
|
---|
| 148 | <indexterm zone="ash ash-prog">
|
---|
| 149 | <primary sortas="b-ash">ash</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | </variablelist>
|
---|
[a245e6d1] | 155 |
|
---|
[f39a33c] | 156 | </sect2>
|
---|
[a245e6d1] | 157 |
|
---|
[f39a33c] | 158 | </sect1>
|
---|