Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

How do you escape $ in values? #9

Closed
saimonmoore opened this Issue · 4 comments

2 participants

@saimonmoore

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.

@sstephenson
Owner

Just put a backslash in front of the $.

@sstephenson
Owner

That output is correct.

$ echo ''\$'foo'
$foo
$ ( eval "$(rbenv vars)" && echo "$PASSWD" )
$foo
@saimonmoore

hmmm...you'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
Something went wrong with that request. Please try again.