Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whenever I cd or use rvm commands this shows up:

-bash: /usr/local/rvm/scripts/initialize: line 80: syntax error near unexpected token `fi'   
-bash: /usr/local/rvm/scripts/initialize: line 80: `  fi'   
-bash: /usr/local/rvm/scripts/hook: line 32: syntax error near unexpected token `fi'
-bash: /usr/local/rvm/scripts/hook: line 32: `fi'

This randomly started to happen. Any ideas?

Here are my paths:


Update: The problem fixed itself after I updated to OS X 10.8

share|improve this question

I can only guess now, but this would happen in restricted(limited) shell, like when bash is executed via sh link, or when run with bash -r. make sure you use login shell like bash -l, validate your shell in /etc/passwd.

share|improve this answer
Aren't these rvm scripts standalone, specifying the correct script interpreter? Would these particular restrictions get inherited somehow..? – Daniel Beck Aug 5 '12 at 20:49
rvm is sourced into the running session, so it is running in the same shell as user opens, RVM2 will have smaller wrapper for this tasks, where all code will be running in it's own shell (separate build). – mpapis Aug 5 '12 at 20:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .