sstephenson/rbenv — Issue #196: rbenv init - does not work
Author: svez01
Created: 2012-02-18 08:28:41+00:00
State: open

I get the following error when I open terminal or run ```. ~/.bash_profile```

```
-bash: eval: line 12: syntax error near unexpected token `)'
-bash: eval: line 12: ` )'
```

Running ```rbenv init -``` gives the following output

```
export PATH="/Volumes/Macintosh HDD/andrewneeds/.rbenv/shims:${PATH}"
source "/Volumes/Macintosh HDD/andrewneeds/.rbenv/libexec/../completions/rbenv.bash"
rbenv rehash 2>/dev/null
rbenv() {
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi

case "$command" in
)
eval `rbenv "sh-$command" "$@"`;;
*)
command rbenv "$command" "$@";;
esac
}
```

.bash_profile contains the following

```
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
```

Am I doing something wrong here?