commands.sh

shopt

all

Manage Bash shell options: variables (stored in `$BASHOPTS`) that control behavior specific to the Bash shell. Generic POSIX shell variables (stored in `$SHELLOPTS`) are managed with the `set` command instead.

More info →

Examples (5)

List of all setable options and whether they are set

Set an option

shopt -s option_name

Unset an option

shopt -u option_name

Print a list of all options and their status formatted as runnable `shopt` commands

Display help

made by @shridhargupta | data from tldr-pages