1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/do/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!-- Following URL does has old versions: https://astron.com/pub/tcsh/old/ -->
|
---|
8 | <!ENTITY tcsh-download-http "https://astron.com/pub/tcsh/tcsh-&tcsh-version;.tar.gz">
|
---|
9 | <!ENTITY tcsh-download-ftp "ftp://ftp.astron.com/pub/tcsh/tcsh-&tcsh-version;.tar.gz">
|
---|
10 | <!ENTITY tcsh-md5sum "ac11cbe21435afd3b7821929b547d763">
|
---|
11 | <!ENTITY tcsh-size "936 KB">
|
---|
12 | <!ENTITY tcsh-buildsize "11 MB (with tests)">
|
---|
13 | <!ENTITY tcsh-time "0.2 SBU (with tests)">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="tcsh" xreflabel="Tcsh-&tcsh-version;">
|
---|
17 | <?dbhtml filename="tcsh.html"?>
|
---|
18 |
|
---|
19 | <title>Tcsh-&tcsh-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="tcsh">
|
---|
22 | <primary sortas="a-Tcsh">Tcsh</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to Tcsh</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>Tcsh</application> package contains <quote>an
|
---|
30 | enhanced but completely compatible version of the Berkeley Unix C shell
|
---|
31 | (<command>csh</command>)</quote>. This is useful as an alternative shell
|
---|
32 | for those who prefer C syntax to that of the <command>bash</command>
|
---|
33 | shell, and also because some programs require the C shell in order to
|
---|
34 | perform installation tasks.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs113_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&tcsh-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&tcsh-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &tcsh-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &tcsh-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &tcsh-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &tcsh-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <para condition="html" role="usernotes">User Notes:
|
---|
74 | <ulink url="&blfs-wiki;/tcsh"/></para>
|
---|
75 |
|
---|
76 | </sect2>
|
---|
77 |
|
---|
78 | <sect2 role="installation">
|
---|
79 | <title>Installation of Tcsh</title>
|
---|
80 |
|
---|
81 | <para>
|
---|
82 | Install <application>Tcsh</application> by running the following
|
---|
83 | commands:
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | <screen><userinput>./configure --prefix=/usr &&
|
---|
87 | make</userinput></screen>
|
---|
88 |
|
---|
89 | <para>
|
---|
90 | To test the results, issue: <command>make check</command>.
|
---|
91 | Two tests, ls-F color LSCOLORS and ls-F color LS_COLORS are known to fail.
|
---|
92 | </para>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen role="root"><userinput>make install install.man &&
|
---|
99 |
|
---|
100 | ln -v -sf tcsh /bin/csh &&
|
---|
101 | ln -v -sf tcsh.1 /usr/share/man/man1/csh.1</userinput></screen>
|
---|
102 | <!--
|
---|
103 | install -v -m755 -d /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
104 | install -v -m644 tcsh.html/* /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
105 | install -v -m644 FAQ /usr/share/doc/tcsh-&tcsh-version;</userinput></screen>
|
---|
106 | -->
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="commands">
|
---|
110 | <title>Command Explanations</title>
|
---|
111 |
|
---|
112 | <!-- No longer there
|
---|
113 | <para>
|
---|
114 | <command>sh ./tcsh.man2html</command>: This creates HTML documentation
|
---|
115 | from the formatted man page.
|
---|
116 | </para>
|
---|
117 | -->
|
---|
118 | <para>
|
---|
119 | <command>ln -v -sf tcsh /bin/csh</command>: The FHS states that if
|
---|
120 | there is a <application>C</application> shell installed, there should
|
---|
121 | be a symlink from <filename>/bin/csh</filename> to it. This creates
|
---|
122 | that symlink.
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="configuration">
|
---|
128 | <title>Configuring Tcsh</title>
|
---|
129 |
|
---|
130 | <sect3 id="tcsh-config">
|
---|
131 | <title>Config Files</title>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | There are numerous configuration files for the C shell. Examples
|
---|
135 | of these are <filename>/etc/csh.cshrc</filename>,
|
---|
136 | <filename>/etc/csh.login</filename>,
|
---|
137 | <filename>/etc/csh.logout</filename>,
|
---|
138 | <filename>~/.tcshrc</filename>, <filename>~/.cshrc</filename>,
|
---|
139 | <filename>~/.history</filename>, <filename>~/.cshdirs</filename>,
|
---|
140 | <filename>~/.login</filename>, and <filename>~/.logout</filename>. More
|
---|
141 | information on these files can be found in the
|
---|
142 | <filename>tcsh(1)</filename> man page.
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <indexterm zone="tcsh tcsh-config">
|
---|
146 | <primary sortas="e-etc-csh.cshrc">/etc/csh.cshrc</primary>
|
---|
147 | </indexterm>
|
---|
148 |
|
---|
149 | <indexterm zone="tcsh tcsh-config">
|
---|
150 | <primary sortas="e-etc-csh.login">/etc/csh.login</primary>
|
---|
151 | </indexterm>
|
---|
152 |
|
---|
153 | <indexterm zone="tcsh tcsh-config">
|
---|
154 | <primary sortas="e-etc-csh.logout">/etc/csh.logout</primary>
|
---|
155 | </indexterm>
|
---|
156 |
|
---|
157 | <indexterm zone="tcsh tcsh-config">
|
---|
158 | <primary sortas="e-AA.tcshrc">~/.tcshrc</primary>
|
---|
159 | </indexterm>
|
---|
160 |
|
---|
161 | <indexterm zone="tcsh tcsh-config">
|
---|
162 | <primary sortas="e-AA.cshrc">~/.cshrc</primary>
|
---|
163 | </indexterm>
|
---|
164 |
|
---|
165 | <indexterm zone="tcsh tcsh-config">
|
---|
166 | <primary sortas="e-AA.history">~/.history</primary>
|
---|
167 | </indexterm>
|
---|
168 |
|
---|
169 | <indexterm zone="tcsh tcsh-config">
|
---|
170 | <primary sortas="e-AA.cshdirs">~/.cshdirs</primary>
|
---|
171 | </indexterm>
|
---|
172 |
|
---|
173 | <indexterm zone="tcsh tcsh-config">
|
---|
174 | <primary sortas="e-AA.login">~/.login</primary>
|
---|
175 | </indexterm>
|
---|
176 |
|
---|
177 | <indexterm zone="tcsh tcsh-config">
|
---|
178 | <primary sortas="e-AA.logout">~/.logout</primary>
|
---|
179 | </indexterm>
|
---|
180 |
|
---|
181 | </sect3>
|
---|
182 |
|
---|
183 | <sect3>
|
---|
184 | <title>Configuration Information</title>
|
---|
185 |
|
---|
186 | <para>
|
---|
187 | Update <filename>/etc/shells</filename> to include the C shell
|
---|
188 | program names (as the &root; user):
|
---|
189 | </para>
|
---|
190 |
|
---|
191 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
192 | <literal>/bin/tcsh
|
---|
193 | /bin/csh</literal>
|
---|
194 | EOF</userinput></screen>
|
---|
195 |
|
---|
196 | <para>
|
---|
197 | The following <filename>~/.cshrc</filename> provides two alternative
|
---|
198 | colour prompts and coloured <command>ls</command> output. If you prefer
|
---|
199 | a global modification, issue the command as the &root; user, replacing
|
---|
200 | <filename>~/.cshrc</filename> by <filename>/etc/csh.cshrc</filename>.
|
---|
201 | </para>
|
---|
202 |
|
---|
203 | <screen><userinput>cat > ~/.cshrc << "EOF"
|
---|
204 | <literal># Original at:
|
---|
205 | # https://www.cs.umd.edu/~srhuang/teaching/code_snippets/prompt_color.tcsh.html
|
---|
206 |
|
---|
207 | # Modified by the BLFS Development Team.
|
---|
208 |
|
---|
209 | # Add these lines to your ~/.cshrc (or to /etc/csh.cshrc).
|
---|
210 |
|
---|
211 | # Colors!
|
---|
212 | set red="%{\033[1;31m%}"
|
---|
213 | set green="%{\033[0;32m%}"
|
---|
214 | set yellow="%{\033[1;33m%}"
|
---|
215 | set blue="%{\033[1;34m%}"
|
---|
216 | set magenta="%{\033[1;35m%}"
|
---|
217 | set cyan="%{\033[1;36m%}"
|
---|
218 | set white="%{\033[0;37m%}"
|
---|
219 | set end="%{\033[0m%}" # This is needed at the end...
|
---|
220 |
|
---|
221 | # Setting the actual prompt. Two separate versions for you to try, pick
|
---|
222 | # whichever one you like better, and change the colors as you want.
|
---|
223 | # Just don't mess with the ${end} guy in either line... Comment out or
|
---|
224 | # delete the prompt you don't use.
|
---|
225 |
|
---|
226 | set prompt="${green}%n${blue}@%m ${white}%~ ${green}%%${end} "
|
---|
227 | set prompt="[${green}%n${blue}@%m ${white}%~ ]${end} "
|
---|
228 |
|
---|
229 | # This was not in the original URL above
|
---|
230 | # Provides coloured ls
|
---|
231 | alias ls ls --color=always
|
---|
232 |
|
---|
233 | # Clean up after ourselves...
|
---|
234 | unset red green yellow blue magenta cyan yellow white end</literal>
|
---|
235 | EOF</userinput></screen>
|
---|
236 |
|
---|
237 | </sect3>
|
---|
238 |
|
---|
239 | </sect2>
|
---|
240 |
|
---|
241 | <sect2 role="content">
|
---|
242 | <title>Contents</title>
|
---|
243 |
|
---|
244 | <segmentedlist>
|
---|
245 | <segtitle>Installed Program</segtitle>
|
---|
246 | <segtitle>Installed Libraries</segtitle>
|
---|
247 | <segtitle>Installed Directory</segtitle>
|
---|
248 |
|
---|
249 | <seglistitem>
|
---|
250 | <seg>tcsh</seg>
|
---|
251 | <seg>None</seg>
|
---|
252 | <seg>None <!--/usr/share/doc/tcsh-&tcsh-version;--></seg>
|
---|
253 | </seglistitem>
|
---|
254 | </segmentedlist>
|
---|
255 |
|
---|
256 | <variablelist>
|
---|
257 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
258 | <?dbfo list-presentation="list"?>
|
---|
259 | <?dbhtml list-presentation="table"?>
|
---|
260 |
|
---|
261 | <varlistentry id="tcsh-prog">
|
---|
262 | <term><command>tcsh</command></term>
|
---|
263 | <listitem>
|
---|
264 | <para>
|
---|
265 | is an enhanced but completely compatible version of the
|
---|
266 | Berkeley Unix C shell, <command>csh</command>. It is usable as
|
---|
267 | both an interactive shell and a script processor
|
---|
268 | </para>
|
---|
269 | <indexterm zone="tcsh tcsh-prog">
|
---|
270 | <primary sortas="b-tcsh">tcsh</primary>
|
---|
271 | </indexterm>
|
---|
272 | </listitem>
|
---|
273 | </varlistentry>
|
---|
274 | </variablelist>
|
---|
275 |
|
---|
276 | </sect2>
|
---|
277 |
|
---|
278 | </sect1>
|
---|