我不小心
bash -a
在我的终端中。为了尝试修复它,我做了
set +a
bash -a
bash +a
我删除并安装了 bash-completion 但它仍然返回
bash: _parse_usage: line 16: syntax error near unexpected token `('
bash: _parse_usage: line 16: ` -?(\[)+([a-zA-Z0-9?]))'
bash: error importing function definition for `_parse_usage'
bash: _longopt: line 6: syntax error near unexpected token `('
bash: _longopt: line 6: ` --!(no-*)dir*)'
bash: error importing function definition for `_longopt'
每当我输入 bash 或尝试运行 bash 脚本时,我该如何修复这个问题?