[[: 没有找到指令 [英] [[: Command not found

查看:93
本文介绍了[[: 没有找到指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在没有sudo权限的系统上安装RVM.从理论上讲应该可以正常工作,但是当我添加

I'm installing RVM on a system where I don't have sudo permissions. It should work fine in theory, but when I added

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

对于bash_profile,它没有执行应有的操作,并且给了我这个错误

to bash_profile, it isn't doing what it's supposed to and it gives me this error

[[: Command not found.

有人知道可能是什么问题吗?

Anyone know what might be the problem?

推荐答案

"[[" ..]]"是内置的bash.另一个外壳程序正在运行该脚本吗?

"[[" .. "]]" is a bash builtin. Is another shell running the script?

这篇关于[[: 没有找到指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆