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