Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
执行 source ~/.bashrc 报错
Experiences and Insight
2520
views ·
1
replies ·
To
floor
Go
dasheng523
deepin
2015-05-22 07:22
Author
今天刚装的系统,下载好JAVA之后,我就用VIM在~/.bashrc的文件后面追加了PATH相关的配置后,我退出VIM,执行 source ~/.bashrc 报错了。
/home/yesheng/.bashrc:16: command not found: shopt
/home/yesheng/.bashrc:24: command not found: shopt
/home/yesheng/.bashrc:108: command not found: shopt
/usr/share/bash-completion/bash_completion:35: parse error near `]]'
Copy the Code
Reply
Like 0
Favorite
View the author
All Replies
MattD
deepin
2015-05-22 07:57
#1
回答过很多次了,shopt是bash内建命令,而深度默认采用zsh作为shell。
想更改shell就用chsh命令改一下。
Reply
Like 0
View the author
Please
sign
in first
New Thread
Rankings
7 days
30 days
90 days
1
buyike
102 posts
2
阿尼樱奈奈
82 posts
3
chmod700
71 posts
4
度深蓝
66 posts
5
该昵称涉嫌违规
52 posts
6
Merlin
51 posts
Popular Events
More