$SHELLOPTS
–
List of enabled shell options
$SHELLOPTS
is a colon-separated list of the currently enabled shell options. It contains options, which are
controlled by the set
command.
$BASHOPTS
is similar, but for the options managed by the shopt
builtin command.
Links
Examples
- Print the enabled shell options
1
echo $SHELLOPTS
BashSupport Pro is a Bash IDE with support for $SHELLOPTS – try it now!