$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
1echo $SHELLOPTS
BashSupport Pro 是一个 支持 $SHELLOPTS 的 Bash 集成开发工具 – 马上试用!