$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 是一个 支持 $SHELLOPTS 的 Bash 集成开发工具 – 马上试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款