
638
|
Chapter 6: The Bash Shell and Korn Shell
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Other Shell Variables
The following variables are not automatically set by the shell, although many of
them can influence the shell’s behavior. They are typically used in your .profile
file, where you can define them to suit your needs. Variables can be assigned
values by issuing commands of the form:
variable=value
This list includes the type of value expected when defining these variables. Those
that are specific to the Bash shell are marked as (B). Those that are specific to the
Korn shell are marked as (K). Those that are specific to ksh93 are marked (K93).
COMP_CWORD For programmablecompletion. Index into COMP_WORDS, indicatingthe currentcursor
position.
COMP_LINE For programmable completion. The current command line.
COMP_POINT For programmable completion. The position of the cursor as a character index in
COMP_LINE.
COMP_WORDBREAKS For programmable completion. The characters that the readline library treats as word
separators when doing word completion.
COMP_WORDS For programmable completion. Array variable containing the individual words on the
command line.
DIRSTACK Array variable, containing the contents of the directory stack as displayed by dirs.
Changing existing elements modifies the stack, but only pushd and popd can add or
remove ...