shopt
Manage Bash shell options: variables (stored in $BASHOPTS) that control behavior specific to the Bash shell. tldr-pages
On several platforms
Several platforms
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.
List all settable options and whether they are set
shoptIdentifySet an option
shopt -s option_nameIdentifyUnset an option
shopt -u option_nameIdentifyPrint a list of all options and their status formatted as runnable shopt commands
shopt -pIdentifyDisplay help
help shoptIdentify