source: postlfs/shells/tcsh.xml@ d5cc78a

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 d5cc78a was eef74ab, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tags for postlfs, general libraries, and programming

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

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