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

reading values via environment variables in bash #569

Open
8de2fdb0 opened this issue Jun 25, 2024 · 1 comment
Open

reading values via environment variables in bash #569

8de2fdb0 opened this issue Jun 25, 2024 · 1 comment

Comments

@8de2fdb0
Copy link

Reading nested environment variables is kind of impossible when using this library.

Env variables like:
APP.NESTED_CONFIG.VALUE

Don't really work in Bash, the workaround is to use a double underscore for separators __, I guess parsing would have been a bit harder if _ would be supported in that case. But from a usability perspective this is a real foodgun.

@softdevca
Copy link

In fact, dots in environment variables aren't POSIX compliant. See https://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names/2821201#2821201

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

2 participants