[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 |
|
---|
[a8fc86c1] | 7 | <!ENTITY tcsh-download-http "http://www.sfr-fresh.com/unix/misc/tcsh-&tcsh-version;.tar.gz">
|
---|
| 8 | <!ENTITY tcsh-download-ftp "ftp://ftp.astron.com/pub/tcsh/tcsh-&tcsh-version;.tar.gz">
|
---|
[f1d3e56] | 9 | <!ENTITY tcsh-md5sum "c47de903e3d52f6824c8dd0c91eeb477">
|
---|
| 10 | <!ENTITY tcsh-size "890 KB">
|
---|
[4f7d19e] | 11 | <!ENTITY tcsh-buildsize "9.3 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>
|
---|
[fd7e0ed6] | 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 |
|
---|
[f1d3e56] | 88 | <screen><userinput>sed -i -e 's|\$\*|#&|' -e 's|fR/g|&m|' tcsh.man2html &&
|
---|
| 89 | ./configure --prefix=/usr --bindir=/bin &&
|
---|
[2956bc0] | 90 | make &&
|
---|
| 91 | sh ./tcsh.man2html</userinput></screen>
|
---|
| 92 |
|
---|
[4f7d19e] | 93 | <!--
|
---|
[f70c31f] | 94 | <para>To test the results, issue: <command>make check</command>. Note
|
---|
| 95 | that test #68 (<quote>nice</quote> test) is known to fail.</para>
|
---|
[4f7d19e] | 96 | -->
|
---|
| 97 |
|
---|
[38867eb] | 98 | <para>The test suite is known to completely fail with GNU M4-&lfs-m4-version; as
|
---|
[4f7d19e] | 99 | installed in LFS. There is one failure (#120) when using an older version
|
---|
[38867eb] | 100 | of <application>M4</application>. To try to run the checks anyway, issue:
|
---|
| 101 | <command>make check</command>.</para>
|
---|
[eab549f] | 102 |
|
---|
| 103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 104 |
|
---|
[f70c31f] | 105 | <screen role="root"><userinput>make install install.man &&
|
---|
| 106 | ln -v -sf tcsh /bin/csh &&
|
---|
[4f7d19e] | 107 | ln -v -sf tcsh.1 /usr/share/man/man1/csh.1 &&
|
---|
[f1d3e56] | 108 | install -v -m755 -d /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
[2956bc0] | 109 | install -v -m644 tcsh.html/* /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
[f70c31f] | 110 | install -v -m644 FAQ /usr/share/doc/tcsh-&tcsh-version;</userinput></screen>
|
---|
[eab549f] | 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="commands">
|
---|
| 115 | <title>Command Explanations</title>
|
---|
[f45b1953] | 116 |
|
---|
[f1d3e56] | 117 | <para><command>sed -i -e 's|\$\*|#&|' -e 's|fR/g|&m|' tcsh.man2html</command>:
|
---|
| 118 | This updates some deprecated Perl code.</para>
|
---|
| 119 |
|
---|
[2956bc0] | 120 | <para><parameter>--bindir=/bin</parameter>: This installs the
|
---|
[4f7d19e] | 121 | <command>tcsh</command> program in <filename
|
---|
| 122 | class='directory'>/bin</filename> instead of <filename
|
---|
| 123 | class='directory'>/usr/bin</filename>.</para>
|
---|
[2956bc0] | 124 |
|
---|
| 125 | <para><command>sh ./tcsh.man2html</command>: This creates HTML documentation
|
---|
| 126 | from the formatted man page.</para>
|
---|
| 127 |
|
---|
| 128 | <para><command>ln -v -sf tcsh /bin/csh</command>: The FHS states that if
|
---|
| 129 | there is a <application>C</application> shell installed, there should be a
|
---|
[bccbdaea] | 130 | symlink from <filename>/bin/csh</filename> to it. This creates that
|
---|
[2956bc0] | 131 | symlink.</para>
|
---|
[eab549f] | 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
| 135 | <sect2 role="configuration">
|
---|
| 136 | <title>Configuring Tcsh</title>
|
---|
| 137 |
|
---|
| 138 | <sect3 id="tcsh-config">
|
---|
| 139 | <title>Config Files</title>
|
---|
| 140 |
|
---|
| 141 | <para>There are numerous configuration files for the C shell. Examples
|
---|
| 142 | of these are <filename>/etc/csh.cshrc</filename>,
|
---|
| 143 | <filename>/etc/csh.login</filename>, <filename>/etc/csh.logout</filename>,
|
---|
| 144 | <filename>~/.tcshrc</filename>, <filename>~/.cshrc</filename>,
|
---|
| 145 | <filename>~/.history</filename>, <filename>~/.cshdirs</filename>,
|
---|
| 146 | <filename>~/.login</filename>, and <filename>~/.logout</filename>. More
|
---|
| 147 | information on these files can be found in the
|
---|
| 148 | <filename>tcsh(1)</filename> man page.</para>
|
---|
| 149 |
|
---|
| 150 | <indexterm zone="tcsh tcsh-config">
|
---|
| 151 | <primary sortas="e-etc-csh.cshrc">/etc/csh.cshrc</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 |
|
---|
| 154 | <indexterm zone="tcsh tcsh-config">
|
---|
| 155 | <primary sortas="e-etc-csh.login">/etc/csh.login</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 |
|
---|
| 158 | <indexterm zone="tcsh tcsh-config">
|
---|
| 159 | <primary sortas="e-etc-csh.logout">/etc/csh.logout</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 |
|
---|
| 162 | <indexterm zone="tcsh tcsh-config">
|
---|
| 163 | <primary sortas="e-AA.tcshrc">~/.tcshrc</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 |
|
---|
| 166 | <indexterm zone="tcsh tcsh-config">
|
---|
| 167 | <primary sortas="e-AA.cshrc">~/.cshrc</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 |
|
---|
| 170 | <indexterm zone="tcsh tcsh-config">
|
---|
| 171 | <primary sortas="e-AA.history">~/.history</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 |
|
---|
| 174 | <indexterm zone="tcsh tcsh-config">
|
---|
| 175 | <primary sortas="e-AA.cshdirs">~/.cshdirs</primary>
|
---|
| 176 | </indexterm>
|
---|
[42e6981] | 177 |
|
---|
[eab549f] | 178 | <indexterm zone="tcsh tcsh-config">
|
---|
| 179 | <primary sortas="e-AA.login">~/.login</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 |
|
---|
| 182 | <indexterm zone="tcsh tcsh-config">
|
---|
| 183 | <primary sortas="e-AA.logout">~/.logout</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 |
|
---|
| 186 | </sect3>
|
---|
| 187 |
|
---|
[2956bc0] | 188 | <sect3>
|
---|
| 189 | <title>Configuration Information</title>
|
---|
| 190 |
|
---|
| 191 | <para>Update <filename>/etc/shells</filename> to include the C shell
|
---|
[bccbdaea] | 192 | program names (as the <systemitem class="username">root</systemitem>
|
---|
[03ff511] | 193 | user):</para>
|
---|
[2956bc0] | 194 |
|
---|
| 195 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 196 | <literal>/bin/tcsh
|
---|
| 197 | /bin/csh</literal>
|
---|
| 198 | EOF</userinput></screen>
|
---|
| 199 |
|
---|
| 200 | </sect3>
|
---|
| 201 |
|
---|
[eab549f] | 202 | </sect2>
|
---|
| 203 |
|
---|
| 204 | <sect2 role="content">
|
---|
| 205 | <title>Contents</title>
|
---|
| 206 |
|
---|
| 207 | <segmentedlist>
|
---|
| 208 | <segtitle>Installed Program</segtitle>
|
---|
| 209 | <segtitle>Installed Libraries</segtitle>
|
---|
[2956bc0] | 210 | <segtitle>Installed Directory</segtitle>
|
---|
[eab549f] | 211 |
|
---|
| 212 | <seglistitem>
|
---|
| 213 | <seg>tcsh</seg>
|
---|
| 214 | <seg>None</seg>
|
---|
[2956bc0] | 215 | <seg>/usr/share/doc/tcsh-&tcsh-version;</seg>
|
---|
[eab549f] | 216 | </seglistitem>
|
---|
| 217 | </segmentedlist>
|
---|
| 218 |
|
---|
| 219 | <variablelist>
|
---|
| 220 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 221 | <?dbfo list-presentation="list"?>
|
---|
| 222 | <?dbhtml list-presentation="table"?>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="tcsh-prog">
|
---|
| 225 | <term><command>tcsh</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>is an enhanced but completely compatible version of the
|
---|
| 228 | Berkeley Unix C shell, <command>csh</command>. It is usable as both an
|
---|
| 229 | interactive shell and a script processor.</para>
|
---|
| 230 | <indexterm zone="tcsh tcsh-prog">
|
---|
| 231 | <primary sortas="b-tcsh">tcsh</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 | </variablelist>
|
---|
| 236 |
|
---|
| 237 | </sect2>
|
---|
| 238 |
|
---|
| 239 | </sect1>
|
---|