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

[RFC] [4.0] Behaviour of nested variables #378

Closed
GrahamCampbell opened this issue Nov 4, 2019 · 1 comment · Fixed by #380
Closed

[RFC] [4.0] Behaviour of nested variables #378

GrahamCampbell opened this issue Nov 4, 2019 · 1 comment · Fixed by #380

Comments

@GrahamCampbell
Copy link
Collaborator

There is no way to write a dollar sign without phpdotenv trying to evaluate it as a variable. This is fine, so long as you don't actually have a variable of that name, but will cause problems otherwise. Should we:

  1. Move evaluation of nested variables to the parser, or at least have some more intelligent way of the parser to produce output so that its clear what variables are fair game for replacement.
  2. Only allow variable evaluation within double quoted strings?
  3. Add a way to prevent variable evaluation with an escape sequence?

Both 2 and 3 depend on 1.

@GrahamCampbell
Copy link
Collaborator Author

GrahamCampbell commented Nov 4, 2019

Should we aim for closer feature parity with bash and/or docker env files?

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

Successfully merging a pull request may close this issue.

1 participant