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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you in any case running a shell that is not Bash or ZSH?
Bash >= 3.2.25orZSH >= 4.3.10is required.Your problem looks like you were using minimalistic shell
shwhich is not supported by RVM.You can check user shell in
/etc/passwdand change it withchsh -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.