Korn Shell Options

The Korn shell has a number of options that specify your environment and control execution. There are options that cause background jobs to be run at a lower priority, prevent files from being overwritten with redirection operators, disable filename expansion, specify the vi-style in-line command editor, and more.

Table 7.2 lists some of the Korn shell options, along with the default values (these may differ on your system). All of the options are listed in Appendix E.

Table 7.2. Some Korn Shell Options
set –a, set –o allexport automatically export variables when defined
set –o bgnice execute all background jobs at a lower priority
set –o emacs, set –o gmacs use emacs/gmacs in-line editor
set –o ignoreeof do not exit on end ...

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The 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.