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.

Examples

Print the enabled shell options :

1
2
echo $BASHOPTS
shopt | grep 'on'
BashSupport Pro 是一个 支持 $BASHOPTS 的 Bash 集成开发工具 – 马上试用!
© 2020–2022 Joachim Ansorg
声明
隐私政策
许可条款