source: postlfs/shells/tcsh.xml@ 90cb5d6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules 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 90cb5d6 was 90cb5d6, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Finish tagging Part II. Post LFS Configuration and Extra Software
Archive unussed libxfcegui4

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

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