[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 |
|
---|
| 7 | <!ENTITY ksh-download-http "http://www.research.att.com/~gsf/download/tgz/ast-ksh.&ksh-version;.tgz">
|
---|
| 8 | <!ENTITY ksh-download-ftp " ">
|
---|
| 9 | <!ENTITY ksh-md5sum "9227250fa6ad2235cc8665bb664cc740">
|
---|
| 10 | <!ENTITY ksh-size "1.6 MB">
|
---|
| 11 | <!ENTITY init-download-http "http://www.research.att.com/~gsf/download/tgz/INIT.&ksh-version;.tgz">
|
---|
| 12 | <!ENTITY init-download-ftp " ">
|
---|
| 13 | <!ENTITY init-md5sum "c257f2557e3e136c05b8e7eb0ac1aab0">
|
---|
| 14 | <!ENTITY init-size "340 KB">
|
---|
| 15 | <!ENTITY ksh-buildsize "29.9 MB">
|
---|
| 16 | <!ENTITY ksh-time "1.2 SBU">
|
---|
| 17 | ]>
|
---|
| 18 |
|
---|
| 19 | <sect1 id="ksh" xreflabel="ksh-&ksh-version;">
|
---|
| 20 | <?dbhtml filename="ksh.html"?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
| 23 | <othername>$LastChangedBy$</othername>
|
---|
| 24 | <date>$Date$</date>
|
---|
| 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>ksh-&ksh-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="ksh">
|
---|
| 30 | <primary sortas="a-ksh">ksh</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to ksh</title>
|
---|
| 35 |
|
---|
| 36 | <para><application>ksh</application> is the AT&T Korn Shell.</para>
|
---|
| 37 | <note><para>You must agree to the terms of the CPL-1.0 license in order to
|
---|
| 38 | download the sofware. The download site is password protected, and the
|
---|
[f153e22] | 39 | username and password are listed at the bottom of
|
---|
[e571e42] | 40 | <ulink url="http://www.research.att.com/~gsf/license/cpl-1.0.html">this
|
---|
| 41 | license</ulink>.</para></note>
|
---|
| 42 |
|
---|
| 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 |
|
---|
[f153e22] | 78 |
|
---|
[e571e42] | 79 | <para condition="html" role="usernotes">User Notes:
|
---|
| 80 | <ulink url="&blfs-wiki;/ksh"/></para>
|
---|
| 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2 role="installation">
|
---|
| 85 | <title>Installation of ksh</title>
|
---|
| 86 |
|
---|
| 87 | <para>Unlike other BLFS packages, you will need to first create a working
|
---|
| 88 | directory in which to extract the sources and perform the build. Install
|
---|
| 89 | <application>ksh</application> by running the following commands:</para>
|
---|
| 90 |
|
---|
| 91 | <screen><userinput>mkdir ksh &&
|
---|
| 92 | cd ksh &&
|
---|
| 93 | tar -xzvf ../INIT.&ksh-version;.tgz &&
|
---|
| 94 | tar -xzvf ../ast-ksh.&ksh-version;.tgz &&
|
---|
| 95 | bin/package make
|
---|
| 96 | </userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>The test suite for this package requires other packages from the
|
---|
| 99 | AT&T ast software library, namely <application>nmake</application>,
|
---|
| 100 | in which case, you'd be better to install the
|
---|
| 101 | <application>ast-base</application> package using the same
|
---|
| 102 | instructions. The <application>package</application> command will accept
|
---|
| 103 | a <parameter>test</parameter> argument to test the package.</para>
|
---|
| 104 |
|
---|
| 105 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 106 |
|
---|
| 107 | <screen role="root"><userinput>install -v -m755 -oroot -groot arch/linux.i386/bin/ksh /bin &&
|
---|
| 108 | install -v -m644 -oroot -groot arch/linux.i386/man/man1/sh.1 \
|
---|
| 109 | /usr/share/man/man1/ksh.1</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | <sect2 role="commands">
|
---|
| 114 | <title>Command Explanations</title>
|
---|
| 115 |
|
---|
| 116 | <para><command>bin/package make</command>: This command rebuilds the ast
|
---|
| 117 | <application>INIT</application> package and builds the ast
|
---|
| 118 | <application>ksh</application> package.</para>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="configuration">
|
---|
| 123 | <title>Configuring ksh</title>
|
---|
| 124 |
|
---|
| 125 | <sect3 id="ksh-config">
|
---|
| 126 | <title>Config Files</title>
|
---|
| 127 |
|
---|
| 128 | <para><application>ksh</application> sources
|
---|
| 129 | <filename>/etc/profile</filename>,
|
---|
| 130 | <filename>/etc/suid_profile</filename>, and
|
---|
| 131 | <filename>$HOME/.profile</filename>.</para>
|
---|
| 132 |
|
---|
| 133 | <indexterm zone="ksh ksh-config">
|
---|
| 134 | <primary sortas="e-etc-profile">/etc/profile</primary>
|
---|
| 135 | </indexterm>
|
---|
| 136 |
|
---|
| 137 | <indexterm zone="ksh ksh-config">
|
---|
| 138 | <primary sortas="e-AHOME-.profile">$HOME/.profile</primary>
|
---|
| 139 | </indexterm>
|
---|
| 140 |
|
---|
| 141 | <indexterm zone="ksh ksh-config">
|
---|
| 142 | <primary sortas="e-etc-suid-profile">/etc/suid_profile</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 |
|
---|
| 145 | </sect3>
|
---|
| 146 |
|
---|
| 147 | <sect3>
|
---|
| 148 | <title>Configuration Information</title>
|
---|
| 149 |
|
---|
| 150 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
| 151 | <application>ksh</application> shell by issuing the following command
|
---|
| 152 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 153 |
|
---|
| 154 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 155 | <literal>/bin/ksh</literal>
|
---|
| 156 | EOF</userinput></screen>
|
---|
| 157 |
|
---|
| 158 | </sect3>
|
---|
| 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | <sect2 role="content">
|
---|
| 163 | <title>Contents</title>
|
---|
| 164 |
|
---|
| 165 | <segmentedlist>
|
---|
| 166 | <segtitle>Installed Program</segtitle>
|
---|
| 167 | <segtitle>Installed Libraries</segtitle>
|
---|
| 168 | <segtitle>Installed Directories</segtitle>
|
---|
| 169 |
|
---|
| 170 | <seglistitem>
|
---|
| 171 | <seg>ksh</seg>
|
---|
| 172 | <seg>None</seg>
|
---|
| 173 | <seg>None</seg>
|
---|
| 174 | </seglistitem>
|
---|
| 175 | </segmentedlist>
|
---|
| 176 |
|
---|
| 177 | <variablelist>
|
---|
| 178 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
| 179 | <?dbfo list-presentation="list"?>
|
---|
| 180 | <?dbhtml list-presentation="table"?>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="ksh-prog">
|
---|
| 183 | <term><command>ksh</command></term>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>is the AT&T ast Korn shell.</para>
|
---|
| 186 | <indexterm zone="ksh ksh-prog">
|
---|
| 187 | <primary sortas="b-ksh">ksh</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | </variablelist>
|
---|
| 193 |
|
---|
| 194 | </sect2>
|
---|
| 195 |
|
---|
| 196 | </sect1>
|
---|