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 "5a0dfa0874f2dee24e0b36b3ed41d3a2">
|
---|
11 | <!ENTITY tcsh-size "928 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 | &lfs112_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 | </para>
|
---|
92 |
|
---|
93 | <para>
|
---|
94 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <screen role="root"><userinput>make install install.man &&
|
---|
98 |
|
---|
99 | ln -v -sf tcsh /bin/csh &&
|
---|
100 | ln -v -sf tcsh.1 /usr/share/man/man1/csh.1</userinput></screen>
|
---|
101 | <!--
|
---|
102 | install -v -m755 -d /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
103 | install -v -m644 tcsh.html/* /usr/share/doc/tcsh-&tcsh-version;/html &&
|
---|
104 | install -v -m644 FAQ /usr/share/doc/tcsh-&tcsh-version;</userinput></screen>
|
---|
105 | -->
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | <sect2 role="commands">
|
---|
109 | <title>Command Explanations</title>
|
---|
110 |
|
---|
111 | <!-- No longer there
|
---|
112 | <para>
|
---|
113 | <command>sh ./tcsh.man2html</command>: This creates HTML documentation
|
---|
114 | from the formatted man page.
|
---|
115 | </para>
|
---|
116 | -->
|
---|
117 | <para>
|
---|
118 | <command>ln -v -sf tcsh /bin/csh</command>: The FHS states that if
|
---|
119 | there is a <application>C</application> shell installed, there should
|
---|
120 | be a symlink from <filename>/bin/csh</filename> to it. This creates
|
---|
121 | that symlink.
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | </sect2>
|
---|
125 |
|
---|
126 | <sect2 role="configuration">
|
---|
127 | <title>Configuring Tcsh</title>
|
---|
128 |
|
---|
129 | <sect3 id="tcsh-config">
|
---|
130 | <title>Config Files</title>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | There are numerous configuration files for the C shell. Examples
|
---|
134 | of these are <filename>/etc/csh.cshrc</filename>,
|
---|
135 | <filename>/etc/csh.login</filename>,
|
---|
136 | <filename>/etc/csh.logout</filename>,
|
---|
137 | <filename>~/.tcshrc</filename>, <filename>~/.cshrc</filename>,
|
---|
138 | <filename>~/.history</filename>, <filename>~/.cshdirs</filename>,
|
---|
139 | <filename>~/.login</filename>, and <filename>~/.logout</filename>. More
|
---|
140 | information on these files can be found in the
|
---|
141 | <filename>tcsh(1)</filename> man page.
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <indexterm zone="tcsh tcsh-config">
|
---|
145 | <primary sortas="e-etc-csh.cshrc">/etc/csh.cshrc</primary>
|
---|
146 | </indexterm>
|
---|
147 |
|
---|
148 | <indexterm zone="tcsh tcsh-config">
|
---|
149 | <primary sortas="e-etc-csh.login">/etc/csh.login</primary>
|
---|
150 | </indexterm>
|
---|
151 |
|
---|
152 | <indexterm zone="tcsh tcsh-config">
|
---|
153 | <primary sortas="e-etc-csh.logout">/etc/csh.logout</primary>
|
---|
154 | </indexterm>
|
---|
155 |
|
---|
156 | <indexterm zone="tcsh tcsh-config">
|
---|
157 | <primary sortas="e-AA.tcshrc">~/.tcshrc</primary>
|
---|
158 | </indexterm>
|
---|
159 |
|
---|
160 | <indexterm zone="tcsh tcsh-config">
|
---|
161 | <primary sortas="e-AA.cshrc">~/.cshrc</primary>
|
---|
162 | </indexterm>
|
---|
163 |
|
---|
164 | <indexterm zone="tcsh tcsh-config">
|
---|
165 | <primary sortas="e-AA.history">~/.history</primary>
|
---|
166 | </indexterm>
|
---|
167 |
|
---|
168 | <indexterm zone="tcsh tcsh-config">
|
---|
169 | <primary sortas="e-AA.cshdirs">~/.cshdirs</primary>
|
---|
170 | </indexterm>
|
---|
171 |
|
---|
172 | <indexterm zone="tcsh tcsh-config">
|
---|
173 | <primary sortas="e-AA.login">~/.login</primary>
|
---|
174 | </indexterm>
|
---|
175 |
|
---|
176 | <indexterm zone="tcsh tcsh-config">
|
---|
177 | <primary sortas="e-AA.logout">~/.logout</primary>
|
---|
178 | </indexterm>
|
---|
179 |
|
---|
180 | </sect3>
|
---|
181 |
|
---|
182 | <sect3>
|
---|
183 | <title>Configuration Information</title>
|
---|
184 |
|
---|
185 | <para>
|
---|
186 | Update <filename>/etc/shells</filename> to include the C shell
|
---|
187 | program names (as the &root; user):
|
---|
188 | </para>
|
---|
189 |
|
---|
190 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
191 | <literal>/bin/tcsh
|
---|
192 | /bin/csh</literal>
|
---|
193 | EOF</userinput></screen>
|
---|
194 |
|
---|
195 | <para>
|
---|
196 | The following <filename>~/.cshrc</filename> provides two alternative
|
---|
197 | colour prompts and coloured <command>ls</command> output. If you prefer
|
---|
198 | a global modification, issue the command as the &root; user, replacing
|
---|
199 | <filename>~/.cshrc</filename> by <filename>/etc/csh.cshrc</filename>.
|
---|
200 | </para>
|
---|
201 |
|
---|
202 | <screen><userinput>cat > ~/.cshrc << "EOF"
|
---|
203 | <literal># Original at:
|
---|
204 | # https://www.cs.umd.edu/~srhuang/teaching/code_snippets/prompt_color.tcsh.html
|
---|
205 |
|
---|
206 | # Modified by the BLFS Development Team.
|
---|
207 |
|
---|
208 | # Add these lines to your ~/.cshrc (or to /etc/csh.cshrc).
|
---|
209 |
|
---|
210 | # Colors!
|
---|
211 | set red="%{\033[1;31m%}"
|
---|
212 | set green="%{\033[0;32m%}"
|
---|
213 | set yellow="%{\033[1;33m%}"
|
---|
214 | set blue="%{\033[1;34m%}"
|
---|
215 | set magenta="%{\033[1;35m%}"
|
---|
216 | set cyan="%{\033[1;36m%}"
|
---|
217 | set white="%{\033[0;37m%}"
|
---|
218 | set end="%{\033[0m%}" # This is needed at the end...
|
---|
219 |
|
---|
220 | # Setting the actual prompt. Two separate versions for you to try, pick
|
---|
221 | # whichever one you like better, and change the colors as you want.
|
---|
222 | # Just don't mess with the ${end} guy in either line... Comment out or
|
---|
223 | # delete the prompt you don't use.
|
---|
224 |
|
---|
225 | set prompt="${green}%n${blue}@%m ${white}%~ ${green}%%${end} "
|
---|
226 | set prompt="[${green}%n${blue}@%m ${white}%~ ]${end} "
|
---|
227 |
|
---|
228 | # This was not in the original URL above
|
---|
229 | # Provides coloured ls
|
---|
230 | alias ls ls --color=always
|
---|
231 |
|
---|
232 | # Clean up after ourselves...
|
---|
233 | unset red green yellow blue magenta cyan yellow white end</literal>
|
---|
234 | EOF</userinput></screen>
|
---|
235 |
|
---|
236 | </sect3>
|
---|
237 |
|
---|
238 | </sect2>
|
---|
239 |
|
---|
240 | <sect2 role="content">
|
---|
241 | <title>Contents</title>
|
---|
242 |
|
---|
243 | <segmentedlist>
|
---|
244 | <segtitle>Installed Program</segtitle>
|
---|
245 | <segtitle>Installed Libraries</segtitle>
|
---|
246 | <segtitle>Installed Directory</segtitle>
|
---|
247 |
|
---|
248 | <seglistitem>
|
---|
249 | <seg>tcsh</seg>
|
---|
250 | <seg>None</seg>
|
---|
251 | <seg>None <!--/usr/share/doc/tcsh-&tcsh-version;--></seg>
|
---|
252 | </seglistitem>
|
---|
253 | </segmentedlist>
|
---|
254 |
|
---|
255 | <variablelist>
|
---|
256 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
257 | <?dbfo list-presentation="list"?>
|
---|
258 | <?dbhtml list-presentation="table"?>
|
---|
259 |
|
---|
260 | <varlistentry id="tcsh-prog">
|
---|
261 | <term><command>tcsh</command></term>
|
---|
262 | <listitem>
|
---|
263 | <para>
|
---|
264 | is an enhanced but completely compatible version of the
|
---|
265 | Berkeley Unix C shell, <command>csh</command>. It is usable as
|
---|
266 | both an interactive shell and a script processor
|
---|
267 | </para>
|
---|
268 | <indexterm zone="tcsh tcsh-prog">
|
---|
269 | <primary sortas="b-tcsh">tcsh</primary>
|
---|
270 | </indexterm>
|
---|
271 | </listitem>
|
---|
272 | </varlistentry>
|
---|
273 | </variablelist>
|
---|
274 |
|
---|
275 | </sect2>
|
---|
276 |
|
---|
277 | </sect1>
|
---|