.bashrc:16: command not found: shopt配置环境变量时出错

source .bashrc
-------------------------------------------------------
.bashrc:16: command not found: shopt
.bashrc:24: command not found: shopt
.bashrc:108: command not found: shopt
/usr/share/bash-completion/bash_completion:35: parse error near `]]'

使用另一台装的biolinux系统的文件时,想更改下环境变量,习惯性地在.bashrc文件中进行了配置。结果出现了上面的错误。

谷歌了下,biolinux系统默认的shell是zsh.

echo $SHEL
---------------------
/bin/zsh

echo $Shell发现默认的确实是zsh。于是将环境变量在.zshrc中配置后source,成功。

posted @ 2017-04-24 16:57  ZzzzHong  阅读(13313)  评论(0编辑  收藏  举报