[44f085a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[44f085a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY tcsh-download-http "http://gd.tuwien.ac.at/utils/shells/tcsh/tcsh-&tcsh-version;.tar.gz">
|
---|
[2956bc0] | 8 | <!ENTITY tcsh-download-ftp "ftp://ftp.funet.fi/pub/unix/shells/tcsh/tcsh-&tcsh-version;.tar.gz">
|
---|
| 9 | <!ENTITY tcsh-md5sum "353d1bb7d2741bf8de602c7b6f0efd79">
|
---|
| 10 | <!ENTITY tcsh-size "859 KB">
|
---|
| 11 | <!ENTITY tcsh-buildsize "9 MB">
|
---|
| 12 | <!ENTITY tcsh-time "0.2 SBU">
|
---|
[44f085a] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="tcsh" xreflabel="Tcsh-&tcsh-version;">
|
---|
[eab549f] | 16 | <?dbhtml filename="tcsh.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[e19ad480] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">tcsh-&tcsh-version;.tar</keyword>
|
---|
[9084c2eb] | 23 | <keyword role="ftpdir">tcsh</keyword>
|
---|
[e19ad480] | 24 | </keywordset>
|
---|
[eab549f] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Tcsh-&tcsh-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="tcsh">
|
---|
| 30 | <primary sortas="a-Tcsh">Tcsh</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Tcsh</title>
|
---|
| 35 |
|
---|
[03ff511] | 36 | <para>The <application>Tcsh</application> package contains <quote>an
|
---|
| 37 | enhanced but completely compatible version of the Berkeley Unix C shell
|
---|
| 38 | (<command>csh</command>)</quote>. This is useful as an alternative shell
|
---|
| 39 | for those who prefer C syntax to that of the <command>bash</command> shell,
|
---|
[bccbdaea] | 40 | and also because some programs require the C shell in order to perform
|
---|
[03ff511] | 41 | installation tasks.</para>
|
---|
[eab549f] | 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&tcsh-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&tcsh-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &tcsh-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &tcsh-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &tcsh-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &tcsh-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2 role="installation">
|
---|
| 68 | <title>Installation of Tcsh</title>
|
---|
| 69 |
|
---|
| 70 | <para>Install <application>Tcsh</application> by running the following
|
---|
| 71 | commands:</para>
|
---|
| 72 |
|
---|
[2956bc0] | 73 | <screen><userinput>./configure --prefix=/usr --bindir=/bin &&
|
---|
| 74 | make &&
|
---|
| 75 | sh ./tcsh.man2html</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | <para>This package does not come with a test suite.</para>
|
---|
[eab549f] | 78 |
|
---|
| 79 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 80 |
|
---|
| 81 | <screen role="root"><userinput>make install &&
|
---|
[44f085a] | 82 | make install.man &&
|
---|
[2956bc0] | 83 | ln -v -sf tcsh /bin/csh &&
|
---|
| 84 | ln -v -sf tcsh.1 /usr/man/man1/csh.1 &&
|
---|
| 85 | install -v -m755 -d /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
| 86 | install -v -m644 tcsh.html/* /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
| 87 | install -v -m644 FAQ /usr/share/doc/tcsh-&tcsh-version;</userinput></screen>
|
---|
[eab549f] | 88 |
|
---|
| 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="commands">
|
---|
| 92 | <title>Command Explanations</title>
|
---|
[f45b1953] | 93 |
|
---|
[2956bc0] | 94 | <para><parameter>--bindir=/bin</parameter>: This installs the
|
---|
[bccbdaea] | 95 | <command>tcsh</command> program in
|
---|
[2956bc0] | 96 | <filename class='directory'>/bin</filename> instead of
|
---|
| 97 | <filename class='directory'>/usr/bin</filename>.</para>
|
---|
| 98 |
|
---|
| 99 | <para><command>sh ./tcsh.man2html</command>: This creates HTML documentation
|
---|
| 100 | from the formatted man page.</para>
|
---|
| 101 |
|
---|
| 102 | <para><command>ln -v -sf tcsh /bin/csh</command>: The FHS states that if
|
---|
| 103 | there is a <application>C</application> shell installed, there should be a
|
---|
[bccbdaea] | 104 | symlink from <filename>/bin/csh</filename> to it. This creates that
|
---|
[2956bc0] | 105 | symlink.</para>
|
---|
[eab549f] | 106 |
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="configuration">
|
---|
| 110 | <title>Configuring Tcsh</title>
|
---|
| 111 |
|
---|
| 112 | <sect3 id="tcsh-config">
|
---|
| 113 | <title>Config Files</title>
|
---|
| 114 |
|
---|
| 115 | <para>There are numerous configuration files for the C shell. Examples
|
---|
| 116 | of these are <filename>/etc/csh.cshrc</filename>,
|
---|
| 117 | <filename>/etc/csh.login</filename>, <filename>/etc/csh.logout</filename>,
|
---|
| 118 | <filename>~/.tcshrc</filename>, <filename>~/.cshrc</filename>,
|
---|
| 119 | <filename>~/.history</filename>, <filename>~/.cshdirs</filename>,
|
---|
| 120 | <filename>~/.login</filename>, and <filename>~/.logout</filename>. More
|
---|
| 121 | information on these files can be found in the
|
---|
| 122 | <filename>tcsh(1)</filename> man page.</para>
|
---|
| 123 |
|
---|
| 124 | <indexterm zone="tcsh tcsh-config">
|
---|
| 125 | <primary sortas="e-etc-csh.cshrc">/etc/csh.cshrc</primary>
|
---|
| 126 | </indexterm>
|
---|
| 127 |
|
---|
| 128 | <indexterm zone="tcsh tcsh-config">
|
---|
| 129 | <primary sortas="e-etc-csh.login">/etc/csh.login</primary>
|
---|
| 130 | </indexterm>
|
---|
| 131 |
|
---|
| 132 | <indexterm zone="tcsh tcsh-config">
|
---|
| 133 | <primary sortas="e-etc-csh.logout">/etc/csh.logout</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 |
|
---|
| 136 | <indexterm zone="tcsh tcsh-config">
|
---|
| 137 | <primary sortas="e-AA.tcshrc">~/.tcshrc</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 |
|
---|
| 140 | <indexterm zone="tcsh tcsh-config">
|
---|
| 141 | <primary sortas="e-AA.cshrc">~/.cshrc</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 |
|
---|
| 144 | <indexterm zone="tcsh tcsh-config">
|
---|
| 145 | <primary sortas="e-AA.history">~/.history</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 |
|
---|
| 148 | <indexterm zone="tcsh tcsh-config">
|
---|
| 149 | <primary sortas="e-AA.cshdirs">~/.cshdirs</primary>
|
---|
| 150 | </indexterm>
|
---|
[42e6981] | 151 |
|
---|
[eab549f] | 152 | <indexterm zone="tcsh tcsh-config">
|
---|
| 153 | <primary sortas="e-AA.login">~/.login</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 |
|
---|
| 156 | <indexterm zone="tcsh tcsh-config">
|
---|
| 157 | <primary sortas="e-AA.logout">~/.logout</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 |
|
---|
| 160 | </sect3>
|
---|
| 161 |
|
---|
[2956bc0] | 162 | <sect3>
|
---|
| 163 | <title>Configuration Information</title>
|
---|
| 164 |
|
---|
| 165 | <para>Update <filename>/etc/shells</filename> to include the C shell
|
---|
[bccbdaea] | 166 | program names (as the <systemitem class="username">root</systemitem>
|
---|
[03ff511] | 167 | user):</para>
|
---|
[2956bc0] | 168 |
|
---|
| 169 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 170 | <literal>/bin/tcsh
|
---|
| 171 | /bin/csh</literal>
|
---|
| 172 | EOF</userinput></screen>
|
---|
| 173 |
|
---|
| 174 | </sect3>
|
---|
| 175 |
|
---|
[eab549f] | 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | <sect2 role="content">
|
---|
| 179 | <title>Contents</title>
|
---|
| 180 |
|
---|
| 181 | <segmentedlist>
|
---|
| 182 | <segtitle>Installed Program</segtitle>
|
---|
| 183 | <segtitle>Installed Libraries</segtitle>
|
---|
[2956bc0] | 184 | <segtitle>Installed Directory</segtitle>
|
---|
[eab549f] | 185 |
|
---|
| 186 | <seglistitem>
|
---|
| 187 | <seg>tcsh</seg>
|
---|
| 188 | <seg>None</seg>
|
---|
[2956bc0] | 189 | <seg>/usr/share/doc/tcsh-&tcsh-version;</seg>
|
---|
[eab549f] | 190 | </seglistitem>
|
---|
| 191 | </segmentedlist>
|
---|
| 192 |
|
---|
| 193 | <variablelist>
|
---|
| 194 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 195 | <?dbfo list-presentation="list"?>
|
---|
| 196 | <?dbhtml list-presentation="table"?>
|
---|
| 197 |
|
---|
| 198 | <varlistentry id="tcsh-prog">
|
---|
| 199 | <term><command>tcsh</command></term>
|
---|
| 200 | <listitem>
|
---|
| 201 | <para>is an enhanced but completely compatible version of the
|
---|
| 202 | Berkeley Unix C shell, <command>csh</command>. It is usable as both an
|
---|
| 203 | interactive shell and a script processor.</para>
|
---|
| 204 | <indexterm zone="tcsh tcsh-prog">
|
---|
| 205 | <primary sortas="b-tcsh">tcsh</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 | </variablelist>
|
---|
| 210 |
|
---|
| 211 | </sect2>
|
---|
| 212 |
|
---|
| 213 | </sect1>
|
---|