Appendix B. Comparison of the Shells

The Shells Compared

Feature

Bourne

C

TC

Korn

Bash

Aliases

no

yes

yes

yes

yes

Advanced Pattern Matching

no

no

no

yes

yes

Command-Line Editing

no

no

yes

yes[*]

yes

Directory Stacks (pushd, popd)

no

yes

yes

no

yes

Filename Completion

no

yes[*]

yes

yes

yes

Functions

yes

no

no

yes

yes

History

no

yes

yes

yes

yes

Job Control

no

yes

yes

yes

yes

Key Binding

no

no

yes

no

yes

Prompt Formatting

no

no

yes

no

yes

Spelling Correction

no

no

yes[*]

no

yes[†]

[*] not a default setting; must be set by the user.

[†] cdspell is a shopt option set to correct minor spelling errors in directory names when cd is used.

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 ...

Get UNIX® Shells by Example Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.