-
Notifications
You must be signed in to change notification settings - Fork 86
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
env-file has quoting problems #1208
Comments
First of all, note that the As to handling of quotes; if I remember correctly, the original implementation (moby/moby#4174) both matched the behavior of There was some discussion around quoting on the original PR (also related to wether or not newlines should be expanded (similar to That said, it's a long time since that pull requests, and there have been other requests to allow more flexibility (moby/moby#12997), but there was a fear of introducing feature-creep; what's mostly needed for changes to happen in this area is a proposal / design to see if it's possible to change while remaining backward compatible; moby/moby#12997 (comment) |
I would argue that simply not providing quoting will be very confusing as it violates all industry expectations of "env file" (or more specifically a "dot env" file). I don't know if there is a spec ,the idea comes from 12 Factor App, but all of the implementations function differently. If compose has different semantics for it's .env file, I would wonder why they're not implemented in the same fashion. |
Expected behavior
That
env-file
works the same way as the shellActual behavior
Quotes are interpreted literally rather as quote characters. If you
Then the
$FOO
inside the container is set to"bar"
(with quotes) rather thanbar
.Steps to reproduce the behavior
See also containers/podman#9446
The text was updated successfully, but these errors were encountered: