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