I have some env vars that are passwords and which contain $. This breaks rbenv-vars cause it tries to do variable substitution but I haven't been able to figure out a way to escape $ so rbenv-vars reads it as literal.
Just put a backslash in front of the $.
@sstephenson please reopen this: https://gist.github.com/4500692
That output is correct.
$ echo ''\$'foo'
$ ( eval "$(rbenv vars)" && echo "$PASSWD" )
hmmm...you're right. I think the issue is more subtle and related to my app code. I'll investigate a bit more. Thanks.