Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work correctly when \$ appears anywhere other than the start of a string #12

Closed
jdcrensh opened this issue Feb 2, 2018 · 0 comments

Comments

@jdcrensh
Copy link

jdcrensh commented Feb 2, 2018

via facebook/create-react-app#3961

Escaping a string with \$ works fine when it occurs at the start of the string, but not anywhere else within the string.

Example:

MYVAR=\$bar.baz <- works as expected, value is "$bar.baz"
MYVAR=foo\$bar.baz <- I'd expect "foo$bar.baz" but I get "foo\.baz"

I also tried working around the problem, like so:

BAR=\$bar
MYVAR=foo$BAR.baz

But it gave the same result of "foo\.baz"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant