command not found: shopt
Tofloor
poster avatar
itfan
deepin
2015-05-29 17:58
Author
执行source ~/.bashrc:


/home/itfanr/.bashrc:15: command not found: shopt
/home/itfanr/.bashrc:23: command not found: shopt
/home/itfanr/.bashrc:107: command not found: shopt

shopt是啥命令?

Reply Favorite View the author
All Replies
136******54
deepin
2015-05-29 18:04
#1
Deepin终端默认zsh,配置文件是~/.zshrc
Reply View the author
Comments
itfan
2015-05-29 20:46
嗯嗯
Feng Yu
deepin
2015-05-29 18:11
#2
shopt是bash内置的命令,用于设定和取消bash选项的

而zsh没有shopt这个内建命令,对应的命令是setopt

zsh的配置文件也不是.bashrc,甚至不是任何.bash开头的文件。你应该写到.zshrc中
Reply View the author
itfan
deepin
2015-05-29 20:45
#3
https://bbs.deepin.org/post/30491
shopt是bash内置的命令,用于设定和取消bash选项的

而zsh没有shopt这个内建命令,对应的命令是setopt

O(∩_∩)O谢谢
Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG