$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.

Examples

Print the enabled shell options
1
echo $SHELLOPTS
BashSupport Pro is a Bash IDE with support for $SHELLOPTStry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal