source: postlfs/shells/tcsh.xml@ 64218c2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 64218c2 was 64218c2, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Jist tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23605 af4574ff-66df-0310-9fd7-8a98e5e911e0

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