The bash shopt Command
The bash shell, besides using the set command with long and short options, has a separate shopt command for enabling and disabling options.
The list of options for bash version 3.0 follows. For each option, we describe the behavior when the option is set (enabled):
cdable_vars
When an argument to cd isn't a directory, bash treats it as a variable name, whose value is the target directory.
cdspell
If a cd to a directory fails, bash attempts several minor spelling corrections to see if it can find the real directory. If it finds a correction, it prints the name and changes to the computed directory. This option works only in interactive shells.
checkhash ...
Get Classic Shell Scripting 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.