-2
-bash: /root/.bashrc: line 100: conditional binary operator expected
-bash: /root/.bashrc: line 100: syntax error near `"$HOME/.rvm/scripts/rvm"'
-bash: /root/.bashrc: line 100: `[[ -s "$HOME/.rvm/scripts/rvm"]] && source "$HOME/.rvm/scripts/rvm" #Load RVM into a shell session *as a function*'

添加后我得到了这些输出

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*`

在结束时~/.bashrc

有谁知道如何解决这一问题 ?

我想将 rvm 加载到 shell 会话中

4

1 回答 1

4

之前缺少一个空格]](从错误消息中猜测,但代码中未显示)。

于 2012-06-07T08:30:21.180 回答