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