<?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 ksh-download-http  "http://www.research.att.com/~gsf/download/tgz/ast-ksh.&ksh-version;.tgz">
  <!ENTITY ksh-download-ftp   " ">
  <!ENTITY ksh-md5sum         "630096418741335fd757cda3f054aa11">
  <!ENTITY ksh-size           "1.7 MB">

  <!ENTITY init-download-http "http://www.research.att.com/~gsf/download/tgz/INIT.&ksh-version;.tgz">
  <!ENTITY init-download-ftp  " ">
  <!ENTITY init-md5sum        "adb05b9940046d3ca6b4b24038131725">
  <!ENTITY init-size          "350 KB">

  <!ENTITY ksh-buildsize      "34 MB">
  <!ENTITY ksh-time           "1.5 SBU">
]>

<sect1 id="ksh" xreflabel="ksh-&ksh-version;">
  <?dbhtml filename="ksh.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2012-05-12 17:08:45 -0400 (Sat, 12 May 2012) $</date>
  </sect1info>

  <title>ksh-&ksh-version;</title>

  <indexterm zone="ksh">
    <primary sortas="a-ksh">ksh</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to ksh</title>

    <para><application>ksh</application> is the AT&amp;T Korn Shell.</para>

    <note>
      <para>You must agree to the terms of the CPL-1.0 license in order to
      download the software. The download site is password protected, and the
      username and password are listed at the bottom of
      <ulink url="http://www.research.att.com/~gsf/license/cpl-1.0.html">this
      license</ulink>.</para>
    </note>

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Ksh Download (HTTP): <ulink url="&ksh-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Ksh Download (FTP): <ulink url="&ksh-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Ksh Download MD5 sum: &ksh-md5sum;</para>
      </listitem>
      <listitem>
        <para>Ksh Download size: &ksh-size;</para>
      </listitem>
      <listitem>
        <para>INIT Download (HTTP): <ulink url="&init-download-http;"/></para>
      </listitem>
      <listitem>
        <para>INIT Download (FTP): <ulink url="&init-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>INIT Download MD5 sum: &init-md5sum;</para>
      </listitem>
      <listitem>
        <para>INIT Download size: &init-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &ksh-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &ksh-time;</para>
      </listitem>
    </itemizedlist>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/ksh"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of ksh</title>

    <para>Unlike other BLFS packages, you will need to first create a working
    directory in which to extract the sources and perform the build.  Install
    <application>ksh</application> by running the following commands:</para>

<screen><userinput>mkdir ksh &amp;&amp;
cd ksh &amp;&amp;
tar -xf ../INIT.&ksh-version;.tgz &amp;&amp;
tar -xf ../ast-ksh.&ksh-version;.tgz &amp;&amp;
bin/package make</userinput></screen>

    <para>The test suite for this package requires other packages from the
    AT&amp;T ast software library, namely <application>nmake</application>,
    in which case, you'd be better to install the
    <application>ast-base</application> package using the same
    instructions. The <application>package</application> command will accept
    a <parameter>test</parameter> argument to test the package.</para>

    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>install -v -m755 arch/linux.i386/bin/ksh /bin &amp;&amp;
install -v -m644 arch/linux.i386/man/man1/sh.1 \
    /usr/share/man/man1/ksh.1 &amp;&amp;
install -v -m755 -d /usr/share/doc/ksh-&ksh-version; &amp;&amp;
install -v -m644 lib/package/{ast-ksh,INIT}.html \
    /usr/share/doc/ksh-&ksh-version;</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para><command>bin/package make</command>: This command rebuilds the ast
    <application>INIT</application> package and builds the ast
    <application>ksh</application> package.</para>

  </sect2>

  <sect2 role="configuration">
    <title>Configuring ksh</title>

    <sect3 id="ksh-config">
      <title>Config Files</title>

      <para><application>ksh</application> sources
      <filename>/etc/profile</filename>,
      <filename>/etc/suid_profile</filename>, and
      <filename>$HOME/.profile</filename>.</para>

      <indexterm zone="ksh ksh-config">
        <primary sortas="e-etc-profile">/etc/profile</primary>
      </indexterm>

      <indexterm zone="ksh ksh-config">
        <primary sortas="e-AHOME-.profile">$HOME/.profile</primary>
      </indexterm>

      <indexterm zone="ksh ksh-config">
        <primary sortas="e-etc-suid-profile">/etc/suid_profile</primary>
      </indexterm>

    </sect3>

    <sect3>
      <title>Configuration Information</title>

      <para>Update <filename>/etc/shells</filename> to include the
      <application>ksh</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/ksh</literal>
EOF</userinput></screen>

    </sect3>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Program</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directory</segtitle>

      <seglistitem>
        <seg>ksh</seg>
        <seg>None</seg>
        <seg>/usr/share/doc/ksh-&ksh-version;</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Description</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="ksh-prog">
        <term><command>ksh</command></term>
        <listitem>
          <para>is the AT&amp;T ast Korn shell.</para>
          <indexterm zone="ksh ksh-prog">
            <primary sortas="b-ksh">ksh</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
