The Korn shell is the most advanced of the shells that are "officially"
distributed with UNIX systems.
It's a backward-compatible evolutionary
successor to the Bourne shell that includes most of the C shell's
major advantages as well as a few new features of its own.
Features appropriated from the C shell include:
, including the fg
the ability to stop jobs with CTRL-Z.
, which allow you to define shorthand names for commands
or command lines.
(included in some C shell versions), which increase
programmability and allow you to store your own shell code in
memory instead of files.
, which lets you recall previously entered
The Korn shell's major new features include:
, allowing you to use vi
-style editing commands on your command lines.
Integrated programming features
: the functionality of
several external UNIX commands, including test
, and echo
, has been integrated into the
shell itself, enabling common programming tasks to be done
more cleanly and without creating extra processes.
, especially the select
which enables easy menu generation.
that make it possible to write
tools that help programmers debug their shell code.
, well known to users of UNIX utilities
, have been added to the standard set
of filename wildcards and to the shell variable facility.
Advanced I/O features
, including the ability to do
two-way communication with concurrent processes (coroutines
New options and variables
that give you more ways to customize
of shell code execution.
that help protect against "Trojan horses"
and other types of break-in schemes.