kurtbuilds / modenv

A CLI to easily manage .env files and keep them consistent. It is simple, fast, error resistant, and composable.
MIT License
56 stars 2 forks source link

export $(modenv show) fails if var contains space #2

Closed kurtbuilds closed 2 years ago

kurtbuilds commented 2 years ago
  1. modenv doesn't seem to be adding quotes when it should.
$ modenv RUSTFLAGS="-Z macro-backtrace"
$ cat .env
RUSTFLAGS=-Z macro-backtrace
  1. show doesn't work:
$ export RUSTFLAGS="-Z macro-backtrace"
$ env | rg RUST
RUSTFLAGS=-Z macro-backtrace

versus

$ export "$(modenv show)"
$ env | rg RUST
RUSTFLAGS='-Z macro-backtrace'
kurtbuilds commented 2 years ago

fixed in v0.6.1