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_varsWhen an argument to cd isn't a directory, bash treats it as a variable name, whose value is the target directory.
cdspellIf 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access