Table 3.3. shopt Option Names |
Option | Meaning |
cdable_vars | If set, an argument to the cd built-in command that is not a directory is assumed to be the name of a variable whose value is the directory to change to. |
checkhash | If set, bash checks that a command found in the hash table exists before trying to execute it. If a hashed command no longer exists, a normal path search is performed. |
cmdhist | If set, bash attempts to save all lines of a multiple-line command in the same history entry. |
dotglob | If set, bash includes filenames beginning with a . (dot) in the results of pathname expansion. |
execfail | If set, a non-interactive shell will not exit if it cannot execute the file specified as an argument to the exec command. An interactive shell does not exit if exec fails. |
histappend | If set, the history list is appended to the file named by the value of the HISTFILE variable when the shell exits, rather than overwriting the file. |
lithist | If set, and the cmdhist option is enabled, multiline commands are saved to the history with embedded newlines, rather than using semicolon separators where possible. |
mailwarn | If set, and a file that bash is checking for mail has been accessed since the last time it was checked, the message "The mail in mailfile has been read" is displayed. |