-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会话中
答案 0 :(得分:4)
]]
之前缺少一个空格(从错误消息中猜测,但代码中没有显示)。