[e571e42] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b3bde60b] | 7 | <!ENTITY ksh-download-http "http://www.research.att.com/~gsf/download/tgz/ast-ksh.&ksh-version;.tgz">
|
---|
| 8 | <!ENTITY ksh-download-ftp " ">
|
---|
[7c53963] | 9 | <!ENTITY ksh-md5sum "630096418741335fd757cda3f054aa11">
|
---|
| 10 | <!ENTITY ksh-size "1.7 MB">
|
---|
[b3bde60b] | 11 |
|
---|
[e571e42] | 12 | <!ENTITY init-download-http "http://www.research.att.com/~gsf/download/tgz/INIT.&ksh-version;.tgz">
|
---|
| 13 | <!ENTITY init-download-ftp " ">
|
---|
[7c53963] | 14 | <!ENTITY init-md5sum "adb05b9940046d3ca6b4b24038131725">
|
---|
| 15 | <!ENTITY init-size "350 KB">
|
---|
[b3bde60b] | 16 |
|
---|
[7c53963] | 17 | <!ENTITY ksh-buildsize "34 MB">
|
---|
| 18 | <!ENTITY ksh-time "1.5 SBU">
|
---|
[e571e42] | 19 | ]>
|
---|
| 20 |
|
---|
| 21 | <sect1 id="ksh" xreflabel="ksh-&ksh-version;">
|
---|
| 22 | <?dbhtml filename="ksh.html"?>
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | <title>ksh-&ksh-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="ksh">
|
---|
| 28 | <primary sortas="a-ksh">ksh</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to ksh</title>
|
---|
| 33 |
|
---|
| 34 | <para><application>ksh</application> is the AT&T Korn Shell.</para>
|
---|
| 35 |
|
---|
[9949f8ac] | 36 | <note>
|
---|
| 37 | <para>You must agree to the terms of the CPL-1.0 license in order to
|
---|
| 38 | download the software. The download site is password protected, and the
|
---|
| 39 | username and password are listed at the bottom of
|
---|
| 40 | <ulink url="http://www.research.att.com/~gsf/license/cpl-1.0.html">this
|
---|
| 41 | license</ulink>.</para>
|
---|
| 42 | </note>
|
---|
[e571e42] | 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[f153e22] | 47 | <para>Ksh Download (HTTP): <ulink url="&ksh-download-http;"/></para>
|
---|
[e571e42] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[f153e22] | 50 | <para>Ksh Download (FTP): <ulink url="&ksh-download-ftp;"/></para>
|
---|
[e571e42] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[f153e22] | 53 | <para>Ksh Download MD5 sum: &ksh-md5sum;</para>
|
---|
[e571e42] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[f153e22] | 56 | <para>Ksh Download size: &ksh-size;</para>
|
---|
[e571e42] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[f153e22] | 59 | <para>INIT Download (HTTP): <ulink url="&init-download-http;"/></para>
|
---|
[e571e42] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[f153e22] | 62 | <para>INIT Download (FTP): <ulink url="&init-download-ftp;"/></para>
|
---|
[e571e42] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[f153e22] | 65 | <para>INIT Download MD5 sum: &init-md5sum;</para>
|
---|
[e571e42] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[f153e22] | 68 | <para>INIT Download size: &init-size;</para>
|
---|
[e571e42] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[f153e22] | 71 | <para>Estimated disk space required: &ksh-buildsize;</para>
|
---|
[e571e42] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[f153e22] | 74 | <para>Estimated build time: &ksh-time;</para>
|
---|
[e571e42] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <para condition="html" role="usernotes">User Notes:
|
---|
| 79 | <ulink url="&blfs-wiki;/ksh"/></para>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of ksh</title>
|
---|
| 85 |
|
---|
| 86 | <para>Unlike other BLFS packages, you will need to first create a working
|
---|
| 87 | directory in which to extract the sources and perform the build. Install
|
---|
| 88 | <application>ksh</application> by running the following commands:</para>
|
---|
| 89 |
|
---|
| 90 | <screen><userinput>mkdir ksh &&
|
---|
| 91 | cd ksh &&
|
---|
[b3bde60b] | 92 | tar -xf ../INIT.&ksh-version;.tgz &&
|
---|
| 93 | tar -xf ../ast-ksh.&ksh-version;.tgz &&
|
---|
| 94 | bin/package make</userinput></screen>
|
---|
[e571e42] | 95 |
|
---|
| 96 | <para>The test suite for this package requires other packages from the
|
---|
| 97 | AT&T ast software library, namely <application>nmake</application>,
|
---|
| 98 | in which case, you'd be better to install the
|
---|
| 99 | <application>ast-base</application> package using the same
|
---|
| 100 | instructions. The <application>package</application> command will accept
|
---|
| 101 | a <parameter>test</parameter> argument to test the package.</para>
|
---|
| 102 |
|
---|
| 103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 104 |
|
---|
[d4605d4b] | 105 | <screen role="root"><userinput>install -v -m755 arch/linux.i386/bin/ksh /bin &&
|
---|
| 106 | install -v -m644 arch/linux.i386/man/man1/sh.1 \
|
---|
| 107 | /usr/share/man/man1/ksh.1 &&
|
---|
| 108 | install -v -m755 -d /usr/share/doc/ksh-&ksh-version; &&
|
---|
| 109 | install -v -m644 lib/package/{ast-ksh,INIT}.html \
|
---|
| 110 | /usr/share/doc/ksh-&ksh-version;</userinput></screen>
|
---|
[e571e42] | 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="commands">
|
---|
| 115 | <title>Command Explanations</title>
|
---|
| 116 |
|
---|
| 117 | <para><command>bin/package make</command>: This command rebuilds the ast
|
---|
| 118 | <application>INIT</application> package and builds the ast
|
---|
| 119 | <application>ksh</application> package.</para>
|
---|
| 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2 role="configuration">
|
---|
| 124 | <title>Configuring ksh</title>
|
---|
| 125 |
|
---|
| 126 | <sect3 id="ksh-config">
|
---|
| 127 | <title>Config Files</title>
|
---|
| 128 |
|
---|
| 129 | <para><application>ksh</application> sources
|
---|
| 130 | <filename>/etc/profile</filename>,
|
---|
| 131 | <filename>/etc/suid_profile</filename>, and
|
---|
| 132 | <filename>$HOME/.profile</filename>.</para>
|
---|
| 133 |
|
---|
| 134 | <indexterm zone="ksh ksh-config">
|
---|
| 135 | <primary sortas="e-etc-profile">/etc/profile</primary>
|
---|
| 136 | </indexterm>
|
---|
| 137 |
|
---|
| 138 | <indexterm zone="ksh ksh-config">
|
---|
| 139 | <primary sortas="e-AHOME-.profile">$HOME/.profile</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 |
|
---|
| 142 | <indexterm zone="ksh ksh-config">
|
---|
| 143 | <primary sortas="e-etc-suid-profile">/etc/suid_profile</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 |
|
---|
| 146 | </sect3>
|
---|
| 147 |
|
---|
| 148 | <sect3>
|
---|
| 149 | <title>Configuration Information</title>
|
---|
| 150 |
|
---|
| 151 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
| 152 | <application>ksh</application> shell by issuing the following command
|
---|
| 153 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 154 |
|
---|
| 155 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 156 | <literal>/bin/ksh</literal>
|
---|
| 157 | EOF</userinput></screen>
|
---|
[fd7e0ed6] | 158 |
|
---|
[e571e42] | 159 | </sect3>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="content">
|
---|
| 164 | <title>Contents</title>
|
---|
| 165 |
|
---|
| 166 | <segmentedlist>
|
---|
| 167 | <segtitle>Installed Program</segtitle>
|
---|
| 168 | <segtitle>Installed Libraries</segtitle>
|
---|
[7c53963] | 169 | <segtitle>Installed Directory</segtitle>
|
---|
[e571e42] | 170 |
|
---|
| 171 | <seglistitem>
|
---|
| 172 | <seg>ksh</seg>
|
---|
| 173 | <seg>None</seg>
|
---|
[7c53963] | 174 | <seg>/usr/share/doc/ksh-&ksh-version;</seg>
|
---|
[e571e42] | 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
| 177 |
|
---|
| 178 | <variablelist>
|
---|
| 179 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
| 180 | <?dbfo list-presentation="list"?>
|
---|
| 181 | <?dbhtml list-presentation="table"?>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="ksh-prog">
|
---|
| 184 | <term><command>ksh</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>is the AT&T ast Korn shell.</para>
|
---|
| 187 | <indexterm zone="ksh ksh-prog">
|
---|
| 188 | <primary sortas="b-ksh">ksh</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
| 193 | </variablelist>
|
---|
| 194 |
|
---|
| 195 | </sect2>
|
---|
| 196 |
|
---|
| 197 | </sect1>
|
---|