Table B.7. Options to
shopt
|
|
Option
|
Meaning if Set
|
|
cdable_vars
|
An argument to cd
that is not a directory is assumed to be the name of a variable whose value
is the directory to change to.
|
|
cdspell
|
Minor errors in the spelling of a directory
supplied to the cd command will be corrected
if there is a suitable match. This correction includes missing letters,
incorrect letters, and letter transposition. It works for interactive
shells only.
|
|
checkhash
|
Commands found in the hash table are
checked for existence before being executed and non-existence forces a PATH search.
|
|
checkwinsize
|
Checks the window size after each command
and, if it has changed, updates the variables LINES
and COLUMNS accordingly.
|
|
cmdhist
|
Attempt to save all lines of a multiline
command in a single history entry.
|
|
dotglob
|
Filenames beginning with a . are included in pathname expansion.
|
|
execfail
|
A non-interactive shell will not exit if it
cannot execute the argument to an exec. Interactive
shells do not exit if exec fails.
|
|
expand_aliases
|
Aliases are expanded.
|
|
histappend
|
The history list is appended to the file
named by the value of the variable HISTFILE
when the shell exits, rather than overwriting the file.
|
|
histreedit
|
If readline
is being used, the opportunity is given for re-editing a failed history
substitution.
|
|
histverify
|
If readline
is being used, the results of history substitution are not immediately passed
to the shell parser. Instead, the resulting line is loaded into the readline editing buffer, allowing further
modification.
|
|
hostcomplete
|
If readline
is being used, an attempt will be made to perform hostname completion when a
word beginning with @ is being completed.
|
|
interactive_comments
|
Allows a word beginning with # and all subsequent characters on the line to be
ignored in an interactive shell.
|
|
lithist
|
If the cmdhist option is
enabled, multiline commands are saved to the history with embedded newlines
rather than using semicolon separators where possible.
|
|
mailwarn
|
If the file being checked for mail has been accessed since
the last time it was checked, the message "The mail in mailfile has been read" is displayed.
|
|
nullglob
|
Allows patterns which match no files to expand to null
strings rather than themselves.
|
|
promptvars
|
Prompt strings undergo variable and parameter expansion
after being expanded.
|
|
shift_verbose
|
The shift built-in prints an
error if it has shifted past the last positional parameter.
|
|
sourcepath
|
The source built-in uses the
value of PATH to find the directory
containing the file supplied as an argument.
|