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