如何禁用shopt选项,例如extglob
我的.bashrc文件中有这样的内容:
shopt -s extglob发布于 2017-05-29 05:33:16
使用-u选项:
shopt -u extglob-s用于设置,-u用于取消设置。来自help shopt (或shopt --help以及BSD系统):
Options:
-o restrict OPTNAMEs to those defined for use with `set -o'
-p print each shell option with an indication of its status
-q suppress output
-s enable (set) each OPTNAME
-u disable (unset) each OPTNAME要了解如何以干净的方式购物,请参见以下内容:
https://github.com/codeforester/base/blob/master/lib/shopt.sh
https://stackoverflow.com/questions/44235158
复制相似问题