B.1. 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[a] | yes |
Directory Stacks (pushd, popd) | no | yes | yes | no | yes |
Filename Completion | no | yes[a] | 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[a] | no | yes[b] |
[a] not a default setting; must be set by the user.
[b] cdspel is a shopt option set to correct minor spelling errors in directory names when cd is used.
Get UNIX® Shells by Example, Third Edition 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.