Bad: modifier error when installing RVM

2019-08-24 01:21发布

I'm trying to run source /Users/alastair/.rvm/scripts/rvm, but keep getting:

Bad : modifier in $ (").

Where would the problem be? Happy to paste other files in if these would help.

标签: terminal rvm
1条回答
ら.Afraid
2楼-- · 2019-08-24 02:00

Are you in any case running a shell that is not Bash or ZSH? Bash >= 3.2.25 or ZSH >= 4.3.10 is required.

Your problem looks like you were using minimalistic shell sh which is not supported by RVM.

You can check user shell in /etc/passwd and change it with chsh -s /path/to/new/shell - list of allowed shells is available in /etc/shells - but make sure to pick Bash/ZSH, also note that links like sh->bash will not work as bash changes behavior based on the name that was invoked.

查看更多
登录 后发表回答