Skip to content

Instantly share code, notes, and snippets.

@moonmaster9000
Created April 20, 2011 18:31
Show Gist options
  • Save moonmaster9000/932238 to your computer and use it in GitHub Desktop.
Save moonmaster9000/932238 to your computer and use it in GitHub Desktop.
errors when opening a new terminal after installing the latest rvm from github
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token `('
-bash: /Users/mparker/.rvm/scripts/selector: line 202: ` if [[ -z "${rvm_ruby_version:-""}" ]] (( rvm_head_flag == 0 ))'
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token `('
-bash: /Users/mparker/.rvm/scripts/selector: line 202: ` if [[ -z "${rvm_ruby_version:-""}" ]] (( rvm_head_flag == 0 ))'
@got
Copy link

got commented Apr 20, 2011

Hi,

I have the same problem

I remove all in .rvm and .rvmrc
but i always have this message when i open a new terminal.

I want to clean my computer before reinstalling rvm but i don t know where are these reference.
I think it s in "hook bash startup files" but i don t know how to do that.

Thx

@thbar
Copy link

thbar commented Apr 20, 2011

(from IRC) - it seems there's a bug in RVM head.

Install previous stable (1.6.3) to work around the issue until fixed.

See https://gist.github.com/932332 for instructions!

@got
Copy link

got commented Apr 20, 2011

ok
but how to remove this error ? (mac osx)

@thbar
Copy link

thbar commented Apr 20, 2011

Try to do "rm -rf /Users/mparker/.rvm" then use what I copy pasted (or you can use rvm implode I believe).

@got
Copy link

got commented Apr 20, 2011

lol thx
I have installed rvm twice ... and i didn't see where ...
I think i'm tired ;)

@got
Copy link

got commented Apr 20, 2011

I do :
sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
and the error doesn't occur !


but with no sudo :
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
I have had :
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token (' -bash: /Users/mparker/.rvm/scripts/selector: line 202: if [[ -z "${rvm_ruby_version:-""}" ]](%28 rvm_head_flag == 0 %29)'
-bash: /Users/mparker/.rvm/scripts/selector: line 202: syntax error near unexpected token (' -bash: /Users/mparker/.rvm/scripts/selector: line 202: if [[ -z "${rvm_ruby_version:-""}" ]](%28 rvm_head_flag == 0 %29)'

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment