Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm trying to run source /Users/alastair/.rvm/scripts/rvm, but keep getting:
source /Users/alastair/.rvm/scripts/rvm
Bad : modifier in $ (").
Where would the problem be? Happy to paste other files in if these would help.
在任何情况下,您都在运行不是Bash或ZSH的外壳吗?Bash >= 3.2.25或者ZSH >= 4.3.10是必需的。
Bash >= 3.2.25
ZSH >= 4.3.10
您的问题看起来像您使用的是RVMsh不支持的简约外壳。
sh
您可以检查用户 shell/etc/passwd并更改它chsh -s /path/to/new/shell- 允许的 shell 列表可用/etc/shells- 但请确保选择 Bash/ZSH,还请注意,像 sh->bash 这样的链接将不起作用,因为 bash 根据名称更改行为调用。
/etc/passwd
chsh -s /path/to/new/shell
/etc/shells