How do you escape $ in values? #9

saimonmoore opened this Issue Sep 12, 2012 · 4 comments

2 participants


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 $.


That output is correct.

$ echo ''\$'foo'
$ ( eval "$(rbenv vars)" && echo "$PASSWD" )
@saimonmoore're right. I think the issue is more subtle and related to my app code. I'll investigate a bit more. Thanks.

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