【发布时间】:2012-10-09 20:04:29
【问题描述】:
我正在尝试运行source /Users/alastair/.rvm/scripts/rvm,但不断得到:
Bad : modifier in $ (").
问题出在哪里?如果有帮助,很乐意粘贴其他文件。
【问题讨论】:
我正在尝试运行source /Users/alastair/.rvm/scripts/rvm,但不断得到:
Bad : modifier in $ (").
问题出在哪里?如果有帮助,很乐意粘贴其他文件。
【问题讨论】:
您是否在运行一个不是 Bash 或 ZSH 的 shell? Bash >= 3.2.25 或 ZSH >= 4.3.10 为必填项。
您的问题看起来像是您使用了 RVM 不支持的简约 shell sh。
您可以在 /etc/passwd 中检查用户 shell 并使用 chsh -s /path/to/new/shell 更改它 - 允许的 shell 列表在 /etc/shells 中可用 - 但请确保选择 Bash/ZSH,还要注意像 sh->bash 这样的链接会不能工作,因为 bash 会根据调用的名称更改行为。
【讨论】:
rvm use 无用。