direnv / go-dotenv

Go dotenv parsing library for direnv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Variable expansion in default value?

indigoviolet opened this issue · comments

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

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

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

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

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