source: postlfs/shells/tcsh.xml@ 56229a7e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 56229a7e was 56229a7e, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to zsh-5.8.
Update to ImageMagick-6.9.10-93.
Update to ImageMagick-7.0.9-23.

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

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