Chapter 25The Korn Shell
To wrap up the discussion on alternative Linux shells, this chapter takes a look at the Korn shell. While the Korn shell is popular in the UNIX world, it hasn’t gained much attention in the Linux world. The Korn shell offers an interesting mix of features from both the Bourne and C shells. This chapter discusses the features of the Korn shell and walks you through the most common version of the Korn shell in Linux, the ksh93 shell.
The Korn Shell History
The original Korn shell (called ksh) was developed by David Korn while working at AT&T Bell Labs in the 1980s. David developed the Korn shell (you can probably guess where its name comes from) to be a next-generation programming shell, incorporating the best features of the Bourne and C shells, as well as adding some more advanced support for scripting. The Korn shell quickly became known as a programmer’s shell. It supports advanced programming features missing from both the Bourne and C shells, including associative arrays and floating-point arithmetic.
The original Korn shell was controlled by AT&T as a proprietary shell up until 2000. Since then, it has been released as an open source software project.
There are two separate threads of the original Korn shell:
- ksh88
- ksh93
Most Korn shell implementations (including those found in Linux distributions) ...
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