1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
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">
|
---|
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">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="tcsh" xreflabel="Tcsh-&tcsh-version;">
|
---|
16 | <?dbhtml filename="tcsh.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | <keywordset>
|
---|
22 | <keyword role="package">tcsh-&tcsh-version;.tar</keyword>
|
---|
23 | <keyword role="ftpdir">tcsh</keyword>
|
---|
24 | </keywordset>
|
---|
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 |
|
---|
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,
|
---|
40 | and also because some programs require the C shell in order to perform
|
---|
41 | installation tasks.</para>
|
---|
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 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
66 | <itemizedlist spacing='compact'>
|
---|
67 | <listitem>
|
---|
68 | <para>Required patch for use with Coreutils-&lfs-coreutils-version;:
|
---|
69 | <ulink url="&patch-root;/tcsh-&tcsh-version;-colorls_compat-1.patch"/>
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 | <sect2 role="installation">
|
---|
77 | <title>Installation of Tcsh</title>
|
---|
78 |
|
---|
79 | <para>Install <application>Tcsh</application> by running the following
|
---|
80 | commands:</para>
|
---|
81 |
|
---|
82 | <screen><userinput>patch -Np1 -i ../tcsh-&tcsh-version;-colorls_compat-1.patch &&
|
---|
83 | ./configure --prefix=/usr --bindir=/bin &&
|
---|
84 | make &&
|
---|
85 | sh ./tcsh.man2html</userinput></screen>
|
---|
86 |
|
---|
87 | <para>This package does not come with a test suite.</para>
|
---|
88 |
|
---|
89 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
90 |
|
---|
91 | <screen role="root"><userinput>make install &&
|
---|
92 | make install.man &&
|
---|
93 | ln -v -sf tcsh /bin/csh &&
|
---|
94 | ln -v -sf tcsh.1 /usr/man/man1/csh.1 &&
|
---|
95 | install -v -m755 -d /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
96 | install -v -m644 tcsh.html/* /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
97 | install -v -m644 FAQ /usr/share/doc/tcsh-&tcsh-version;</userinput></screen>
|
---|
98 |
|
---|
99 | </sect2>
|
---|
100 |
|
---|
101 | <sect2 role="commands">
|
---|
102 | <title>Command Explanations</title>
|
---|
103 |
|
---|
104 | <para><parameter>--bindir=/bin</parameter>: This installs the
|
---|
105 | <command>tcsh</command> program in
|
---|
106 | <filename class='directory'>/bin</filename> instead of
|
---|
107 | <filename class='directory'>/usr/bin</filename>.</para>
|
---|
108 |
|
---|
109 | <para><command>sh ./tcsh.man2html</command>: This creates HTML documentation
|
---|
110 | from the formatted man page.</para>
|
---|
111 |
|
---|
112 | <para><command>ln -v -sf tcsh /bin/csh</command>: The FHS states that if
|
---|
113 | there is a <application>C</application> shell installed, there should be a
|
---|
114 | symlink from <filename>/bin/csh</filename> to it. This creates that
|
---|
115 | symlink.</para>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="configuration">
|
---|
120 | <title>Configuring Tcsh</title>
|
---|
121 |
|
---|
122 | <sect3 id="tcsh-config">
|
---|
123 | <title>Config Files</title>
|
---|
124 |
|
---|
125 | <para>There are numerous configuration files for the C shell. Examples
|
---|
126 | of these are <filename>/etc/csh.cshrc</filename>,
|
---|
127 | <filename>/etc/csh.login</filename>, <filename>/etc/csh.logout</filename>,
|
---|
128 | <filename>~/.tcshrc</filename>, <filename>~/.cshrc</filename>,
|
---|
129 | <filename>~/.history</filename>, <filename>~/.cshdirs</filename>,
|
---|
130 | <filename>~/.login</filename>, and <filename>~/.logout</filename>. More
|
---|
131 | information on these files can be found in the
|
---|
132 | <filename>tcsh(1)</filename> man page.</para>
|
---|
133 |
|
---|
134 | <indexterm zone="tcsh tcsh-config">
|
---|
135 | <primary sortas="e-etc-csh.cshrc">/etc/csh.cshrc</primary>
|
---|
136 | </indexterm>
|
---|
137 |
|
---|
138 | <indexterm zone="tcsh tcsh-config">
|
---|
139 | <primary sortas="e-etc-csh.login">/etc/csh.login</primary>
|
---|
140 | </indexterm>
|
---|
141 |
|
---|
142 | <indexterm zone="tcsh tcsh-config">
|
---|
143 | <primary sortas="e-etc-csh.logout">/etc/csh.logout</primary>
|
---|
144 | </indexterm>
|
---|
145 |
|
---|
146 | <indexterm zone="tcsh tcsh-config">
|
---|
147 | <primary sortas="e-AA.tcshrc">~/.tcshrc</primary>
|
---|
148 | </indexterm>
|
---|
149 |
|
---|
150 | <indexterm zone="tcsh tcsh-config">
|
---|
151 | <primary sortas="e-AA.cshrc">~/.cshrc</primary>
|
---|
152 | </indexterm>
|
---|
153 |
|
---|
154 | <indexterm zone="tcsh tcsh-config">
|
---|
155 | <primary sortas="e-AA.history">~/.history</primary>
|
---|
156 | </indexterm>
|
---|
157 |
|
---|
158 | <indexterm zone="tcsh tcsh-config">
|
---|
159 | <primary sortas="e-AA.cshdirs">~/.cshdirs</primary>
|
---|
160 | </indexterm>
|
---|
161 |
|
---|
162 | <indexterm zone="tcsh tcsh-config">
|
---|
163 | <primary sortas="e-AA.login">~/.login</primary>
|
---|
164 | </indexterm>
|
---|
165 |
|
---|
166 | <indexterm zone="tcsh tcsh-config">
|
---|
167 | <primary sortas="e-AA.logout">~/.logout</primary>
|
---|
168 | </indexterm>
|
---|
169 |
|
---|
170 | </sect3>
|
---|
171 |
|
---|
172 | <sect3>
|
---|
173 | <title>Configuration Information</title>
|
---|
174 |
|
---|
175 | <para>Update <filename>/etc/shells</filename> to include the C shell
|
---|
176 | program names (as the <systemitem class="username">root</systemitem>
|
---|
177 | user):</para>
|
---|
178 |
|
---|
179 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
180 | <literal>/bin/tcsh
|
---|
181 | /bin/csh</literal>
|
---|
182 | EOF</userinput></screen>
|
---|
183 |
|
---|
184 | </sect3>
|
---|
185 |
|
---|
186 | </sect2>
|
---|
187 |
|
---|
188 | <sect2 role="content">
|
---|
189 | <title>Contents</title>
|
---|
190 |
|
---|
191 | <segmentedlist>
|
---|
192 | <segtitle>Installed Program</segtitle>
|
---|
193 | <segtitle>Installed Libraries</segtitle>
|
---|
194 | <segtitle>Installed Directory</segtitle>
|
---|
195 |
|
---|
196 | <seglistitem>
|
---|
197 | <seg>tcsh</seg>
|
---|
198 | <seg>None</seg>
|
---|
199 | <seg>/usr/share/doc/tcsh-&tcsh-version;</seg>
|
---|
200 | </seglistitem>
|
---|
201 | </segmentedlist>
|
---|
202 |
|
---|
203 | <variablelist>
|
---|
204 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
205 | <?dbfo list-presentation="list"?>
|
---|
206 | <?dbhtml list-presentation="table"?>
|
---|
207 |
|
---|
208 | <varlistentry id="tcsh-prog">
|
---|
209 | <term><command>tcsh</command></term>
|
---|
210 | <listitem>
|
---|
211 | <para>is an enhanced but completely compatible version of the
|
---|
212 | Berkeley Unix C shell, <command>csh</command>. It is usable as both an
|
---|
213 | interactive shell and a script processor.</para>
|
---|
214 | <indexterm zone="tcsh tcsh-prog">
|
---|
215 | <primary sortas="b-tcsh">tcsh</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 | </variablelist>
|
---|
220 |
|
---|
221 | </sect2>
|
---|
222 |
|
---|
223 | </sect1>
|
---|