Chapter 24The tcsh Shell
Another popular alternative shell available in the Linux world is the C shell. The C shell, as you might guess, is somewhat of an attempt to incorporate features found in the C programming language into shell scripting. The most popular version of the C shell implemented in open source is the tcsh shell. This chapter discusses the tcsh shell, describing its features and showing how to write shell scripts for it.
What Is the tcsh Shell?
The C shell was developed at the University of California, Berkeley, by Bill Joy as a replacement for the original UNIX shell created at AT&T Labs (before there was even a Bourne shell). Developers at Berkeley had designed and built a UNIX system to compete with AT&T UNIX, and the C shell was their choice for the default shell. This version of UNIX is popularly called the Berkeley Software Distribution (or BSD UNIX). The goal of the C shell was to provide a command line and scripting environment that C programmers would be comfortable with.
In the late 1970s Ken Greer created an extension to the C shell that added command line editing features found in the TENEX operating system. This is where the name tcsh came from. The tcsh shell has become a popular shell for many UNIX systems patterned after BSD UNIX (including early versions of the macOS X operating system; newer versions now use the Bash shell as the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access