Learning the Korn Shell

Learning the Korn ShellSearch this book
Previous: B.4 Test OperatorsAppendix B
Reference Lists
Next: B.6 Typeset Options
 

B.5 Options

These are options that can be turned on with the set -o command. All are initially off except where noted. Abbrevs, where listed, are arguments to set that can be used instead of the full set -o command (e.g., set -a is an abbreviation for set -o allexport). The abbreviations are actually backward-compatible Bourne shell options.
OptionAbbrevMeaning
allexport-aExport all subsequently defined variables.
errexit-e

Exit the shell when a command exits with non-0 status.

bgnice

Run all background jobs at decreased priority (on by default).

emacsUse emacs-style command-line editing.
gmacs

Use emacs-style command-line editing, but with a slightly different meaning for [CTRL-T] (See Chapter 2, Command-line Editing).

ignoreeofDisallow [CTRL-D] to exit the shell.
markdirs

Add / to all directory names generated from wildcard expansion.

monitor-mEnable job control (on by default).
noclobberDon't allow > redirection to existing files.
noexec-n

Read commands and check for syntax errors, but don't execute them.

noglob-fDisable wildcard expansion.
nologDisable command history.
nounset-uTreat undefined variables as errors, not as null.
privileged-pScript is running in suid mode.
trackall-h

Substitute full pathnames for commands in alias expansions.

verbose-vPrint commands (verbatim) before running them.
viUse vi-style command-line editing.
viraw

Use vi mode and have each keystroke take effect immediately.

xtrace-x

Print commands (after expansions) before running them.


Previous: B.4 Test OperatorsLearning the Korn ShellNext: B.6 Typeset Options
B.4 Test OperatorsBook IndexB.6 Typeset Options

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System