B.1. tcsh versus csh

The TC shell (tcsh) is an enhanced version of the Berkeley C shell (csh). Listed here are some of the new features.

  • An enhanced history mechanism

  • A built-in command line editor (emacs or vi) for editing the command line

  • Formatting the prompts

  • A spelling correction facility and special prompts for spelling correction and looping

  • Enhanced and programmed word completion for completing commands, filenames, variables, usernames, etc.

  • Ability to create and modify key bindings

  • Automatic, periodic, and timed events (scheduled events, special aliases, automatic logout, terminal locking, etc.)

  • New built-in commands (hup, ls -F, newgrp, printenv, which, where, etc.

  • New built-in variables (gid, loginsh, oid, shlvl, tty, uid, version, HOST, REMOTEHOST, ...

Get Linux Shells by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.