-
Notifications
You must be signed in to change notification settings - Fork 517
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
add support for reading in environment variables from a file #2090
Conversation
ae1437f
to
7fabba2
Compare
I think this is ready now. I based the rules on what works when doing |
c59bb94
to
b95712b
Compare
Co-Authored-By: Fred Hebert <mononcqc@ferd.ca>
This does not work properly if the newline is \r\n instead of just \n, it leaves the \r at the end of the env variable. |
As reported in a comment in erlang#2090 the current mechanism only breaks on a \n and does not even respect the \r\n grapheme cluster. So instead of using string functions, we go to regular expressions where we can specify both endings without a problem.
As reported in a comment in erlang#2090 the current mechanism only breaks on a \n and does not even respect the \r\n grapheme cluster. So instead of using string functions, we go to regular expressions where we can specify both endings without a problem.
See if #2793 works for you? |
As reported in a comment in erlang#2090 the current mechanism only breaks on a \n and does not even respect the \r\n grapheme cluster. So instead of using string functions, we go to regular expressions where we can specify both endings without a problem.
Resolves #2085