$BASHOPTS
–
Enabled Shell Options
$BASHOPTS is a colon-separated list of enabled shell options.
It contains options managed by the shopt builtin command.
$SHELLOPTS is similar, but only for the options controlled by the set builtin.
Links
Examples
- Print the enabled shell options
1 2echo $BASHOPTS shopt | grep 'on'
BashSupport Pro ist eine Bash IDE mit Unterstützung für $BASHOPTS – probieren Sie es aus!