source: postlfs/shells/tcsh.xml@ 54789f3

systemd-13485
Last change on this file since 54789f3 was 54789f3, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to LVM-2.02.420 (merged from trunk r16816).
Update to fuse-2.9.5 (merged from trunk r16814).
Update to gptfdisk-1.0.1 (merged from trunk r16553).
Update to xfsprogs-4.3.0 (merged from trunk r16376).
Update to JOE-4.1 (merged from trunk r16385).
Update to nano-2.5.1 (merged from trunk r16799).
Update to tcsh-6.19.00 (merged from trunk r16332).
Update to zsh-5.2 (merged from trunk r16706).
Update to qemu-2.5.0 (merged from trunk r16773).

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16834 af4574ff-66df-0310-9fd7-8a98e5e911e0

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