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