Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Variable expansion in default value? #8

Open
indigoviolet opened this issue Aug 20, 2023 · 3 comments · May be fixed by #9
Open

Variable expansion in default value? #8

indigoviolet opened this issue Aug 20, 2023 · 3 comments · May be fixed by #9

Comments

@indigoviolet
Copy link

FOO=foo
BAR=${BAR:-${FOO}/bar}

This seems to set BAR to ${FOO/bar}

@zimbatm
Copy link
Member

zimbatm commented Aug 20, 2023

It only supports a limited subset of the .env format. I only implemented the things that I needed. But PR welcome!

@indigoviolet indigoviolet linked a pull request Aug 20, 2023 that will close this issue
@indigoviolet
Copy link
Author

@zimbatm ok, I took a shot, I'm a go n00b so please let me know if I did something incorrect

@indigoviolet
Copy link
Author

Hi @zimbatm, could you please take a look at #9 when you get a chance?

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

Successfully merging a pull request may close this issue.

2 participants