[44f085a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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">
|
---|
[7961b4e] | 9 | <!ENTITY tcsh-md5sum "67a0611620b080bd0eb032b1774382b6">
|
---|
| 10 | <!ENTITY tcsh-size "870 KB">
|
---|
| 11 | <!ENTITY tcsh-buildsize "10 MB">
|
---|
[2956bc0] | 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,
|
---|
[bccbdaea] | 36 | and also because some programs require the C shell in order to perform
|
---|
[03ff511] | 37 | installation tasks.</para>
|
---|
[a4b9cd7] | 38 |
|
---|
[7961b4e] | 39 | <!-- <caution>
|
---|
[a4b9cd7] | 40 | <para><application>Tcsh</application> has problems with command line
|
---|
| 41 | editing in multibyte locales. The issue is discussed in more detail
|
---|
| 42 | in the <xref linkend="locale-wrong-multibyte-characters"/> section
|
---|
| 43 | of the <xref linkend="locale-issues"/> page.</para>
|
---|
[7961b4e] | 44 | </caution> -->
|
---|
[eab549f] | 45 |
|
---|
| 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (HTTP): <ulink url="&tcsh-download-http;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download (FTP): <ulink url="&tcsh-download-ftp;"/></para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download MD5 sum: &tcsh-md5sum;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download size: &tcsh-size;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated disk space required: &tcsh-buildsize;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Estimated build time: &tcsh-time;</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
[7961b4e] | 68 | <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[3a25b4bf] | 69 | <itemizedlist spacing='compact'>
|
---|
| 70 | <listitem>
|
---|
[55fb7f56] | 71 | <para>Required patch for use with Coreutils-&lfs-coreutils-version;:
|
---|
[a8afad7] | 72 | <ulink url="&patch-root;/tcsh-&tcsh-version;-colorls_compat-1.patch"/>
|
---|
[3a25b4bf] | 73 | </para>
|
---|
| 74 | </listitem>
|
---|
[7961b4e] | 75 | </itemizedlist> -->
|
---|
[3a25b4bf] | 76 |
|
---|
[3597eb6] | 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/tcsh"/></para>
|
---|
| 79 |
|
---|
[eab549f] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of Tcsh</title>
|
---|
| 84 |
|
---|
| 85 | <para>Install <application>Tcsh</application> by running the following
|
---|
| 86 | commands:</para>
|
---|
| 87 |
|
---|
[7961b4e] | 88 | <screen><userinput>./configure --prefix=/usr --bindir=/bin &&
|
---|
[2956bc0] | 89 | make &&
|
---|
| 90 | sh ./tcsh.man2html</userinput></screen>
|
---|
| 91 |
|
---|
[7961b4e] | 92 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[eab549f] | 93 |
|
---|
| 94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 95 |
|
---|
| 96 | <screen role="root"><userinput>make install &&
|
---|
[44f085a] | 97 | make install.man &&
|
---|
[2956bc0] | 98 | ln -v -sf tcsh /bin/csh &&
|
---|
| 99 | ln -v -sf tcsh.1 /usr/man/man1/csh.1 &&
|
---|
| 100 | install -v -m755 -d /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
| 101 | install -v -m644 tcsh.html/* /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
| 102 | install -v -m644 FAQ /usr/share/doc/tcsh-&tcsh-version;</userinput></screen>
|
---|
[eab549f] | 103 |
|
---|
| 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2 role="commands">
|
---|
| 107 | <title>Command Explanations</title>
|
---|
[f45b1953] | 108 |
|
---|
[2956bc0] | 109 | <para><parameter>--bindir=/bin</parameter>: This installs the
|
---|
[bccbdaea] | 110 | <command>tcsh</command> program in
|
---|
[2956bc0] | 111 | <filename class='directory'>/bin</filename> instead of
|
---|
| 112 | <filename class='directory'>/usr/bin</filename>.</para>
|
---|
| 113 |
|
---|
| 114 | <para><command>sh ./tcsh.man2html</command>: This creates HTML documentation
|
---|
| 115 | from the formatted man page.</para>
|
---|
| 116 |
|
---|
| 117 | <para><command>ln -v -sf tcsh /bin/csh</command>: The FHS states that if
|
---|
| 118 | there is a <application>C</application> shell installed, there should be a
|
---|
[bccbdaea] | 119 | symlink from <filename>/bin/csh</filename> to it. This creates that
|
---|
[2956bc0] | 120 | symlink.</para>
|
---|
[eab549f] | 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="configuration">
|
---|
| 125 | <title>Configuring Tcsh</title>
|
---|
| 126 |
|
---|
| 127 | <sect3 id="tcsh-config">
|
---|
| 128 | <title>Config Files</title>
|
---|
| 129 |
|
---|
| 130 | <para>There are numerous configuration files for the C shell. Examples
|
---|
| 131 | of these are <filename>/etc/csh.cshrc</filename>,
|
---|
| 132 | <filename>/etc/csh.login</filename>, <filename>/etc/csh.logout</filename>,
|
---|
| 133 | <filename>~/.tcshrc</filename>, <filename>~/.cshrc</filename>,
|
---|
| 134 | <filename>~/.history</filename>, <filename>~/.cshdirs</filename>,
|
---|
| 135 | <filename>~/.login</filename>, and <filename>~/.logout</filename>. More
|
---|
| 136 | information on these files can be found in the
|
---|
| 137 | <filename>tcsh(1)</filename> man page.</para>
|
---|
| 138 |
|
---|
| 139 | <indexterm zone="tcsh tcsh-config">
|
---|
| 140 | <primary sortas="e-etc-csh.cshrc">/etc/csh.cshrc</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 |
|
---|
| 143 | <indexterm zone="tcsh tcsh-config">
|
---|
| 144 | <primary sortas="e-etc-csh.login">/etc/csh.login</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 |
|
---|
| 147 | <indexterm zone="tcsh tcsh-config">
|
---|
| 148 | <primary sortas="e-etc-csh.logout">/etc/csh.logout</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 |
|
---|
| 151 | <indexterm zone="tcsh tcsh-config">
|
---|
| 152 | <primary sortas="e-AA.tcshrc">~/.tcshrc</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 |
|
---|
| 155 | <indexterm zone="tcsh tcsh-config">
|
---|
| 156 | <primary sortas="e-AA.cshrc">~/.cshrc</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 |
|
---|
| 159 | <indexterm zone="tcsh tcsh-config">
|
---|
| 160 | <primary sortas="e-AA.history">~/.history</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 |
|
---|
| 163 | <indexterm zone="tcsh tcsh-config">
|
---|
| 164 | <primary sortas="e-AA.cshdirs">~/.cshdirs</primary>
|
---|
| 165 | </indexterm>
|
---|
[42e6981] | 166 |
|
---|
[eab549f] | 167 | <indexterm zone="tcsh tcsh-config">
|
---|
| 168 | <primary sortas="e-AA.login">~/.login</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 |
|
---|
| 171 | <indexterm zone="tcsh tcsh-config">
|
---|
| 172 | <primary sortas="e-AA.logout">~/.logout</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 |
|
---|
| 175 | </sect3>
|
---|
| 176 |
|
---|
[2956bc0] | 177 | <sect3>
|
---|
| 178 | <title>Configuration Information</title>
|
---|
| 179 |
|
---|
| 180 | <para>Update <filename>/etc/shells</filename> to include the C shell
|
---|
[bccbdaea] | 181 | program names (as the <systemitem class="username">root</systemitem>
|
---|
[03ff511] | 182 | user):</para>
|
---|
[2956bc0] | 183 |
|
---|
| 184 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 185 | <literal>/bin/tcsh
|
---|
| 186 | /bin/csh</literal>
|
---|
| 187 | EOF</userinput></screen>
|
---|
| 188 |
|
---|
| 189 | </sect3>
|
---|
| 190 |
|
---|
[eab549f] | 191 | </sect2>
|
---|
| 192 |
|
---|
| 193 | <sect2 role="content">
|
---|
| 194 | <title>Contents</title>
|
---|
| 195 |
|
---|
| 196 | <segmentedlist>
|
---|
| 197 | <segtitle>Installed Program</segtitle>
|
---|
| 198 | <segtitle>Installed Libraries</segtitle>
|
---|
[2956bc0] | 199 | <segtitle>Installed Directory</segtitle>
|
---|
[eab549f] | 200 |
|
---|
| 201 | <seglistitem>
|
---|
| 202 | <seg>tcsh</seg>
|
---|
| 203 | <seg>None</seg>
|
---|
[2956bc0] | 204 | <seg>/usr/share/doc/tcsh-&tcsh-version;</seg>
|
---|
[eab549f] | 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
| 207 |
|
---|
| 208 | <variablelist>
|
---|
| 209 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 210 | <?dbfo list-presentation="list"?>
|
---|
| 211 | <?dbhtml list-presentation="table"?>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="tcsh-prog">
|
---|
| 214 | <term><command>tcsh</command></term>
|
---|
| 215 | <listitem>
|
---|
| 216 | <para>is an enhanced but completely compatible version of the
|
---|
| 217 | Berkeley Unix C shell, <command>csh</command>. It is usable as both an
|
---|
| 218 | interactive shell and a script processor.</para>
|
---|
| 219 | <indexterm zone="tcsh tcsh-prog">
|
---|
| 220 | <primary sortas="b-tcsh">tcsh</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 | </variablelist>
|
---|
| 225 |
|
---|
| 226 | </sect2>
|
---|
| 227 |
|
---|
| 228 | </sect1>
|
---|