欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【Linux技术】command not found: shopt linux

程序员文章站 2022-07-12 13:41:19
...

在ubuntu环境中,修改过~/.bashrc后,运行命令source ~/.bashrc出现类似错误:

/home/xxx/.bashrc:..:command not found: shopt
/home/xxx/.bashrc:..:command not found: shopt
/home/xxx/.bashrc:..:command not found: shopt
/usr/share/bash-completion/bash_completion:..: parse error near ']]'

改成运行source ~/.zshrc就可以了。在bash终端中使用~/.bashrc,在zsh终端中使用~/.zshrc