source: postlfs/shells/tcsh.xml@ 78d8214e

11.3 12.0 12.1 12.2 gimp3 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 xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 78d8214e was 78d8214e, checked in by Bruce Dubbs <bdubbs@…>, 22 months ago

Update to tcsh-6.24.02.

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