shopt options in Bash
Http://blog.chinaunix.net/uid-20587169-id-1919110.html
The shopt command is used to display and set the behavior options in the shell to enhance the shell's ease of use. shopt command without any parameter options, you can display all the shell action options that you can set.
The SET option and the SHOPT option are two different sets of content, with Set-o and shopt-p to view all open and closed entries for each of the two groups, in the default state, some are open, some are off, and the shopt options are incremented with the bash version. The basic operations associated with SHOPT are as follows:
# shopt-p List all options
# shopt-s List all open options
# shopt-s Extglob Open Extglob options
# shopt-u list all closed options
# shopt-u Extglob off Extglob option
Description of the column:
Cdspell when a CD enters a directory, if the directory name is accidentally misspelled, a letter is wrong or missing, you can enter the directory as well.
Dotglob a hidden file that begins with a point can be represented as normal with a wildcard character without a dot in front of it.
Extglob can be used in RM! (*jpg) This way to delete all file names not ending in jpg, or RM *@ (jpg|png) to say "or", of course, there are other ...
You need to familiarize yourself with these options during bash and find the settings that match your tastes.
Glob mode
*,?,[]
shopt options in Bash