Forum Discussion

erikcw's avatar
erikcw
New Contributor
1 month ago

Environments should quote .env values

I just started experimenting with Environments to mange my .env files.  I use https://direnv.net/ to load my .env files into my shell and it immediately started complaining.  As it turns out, my previous plain text .env had quoted values in some cases, for instance a secret that contains a "&" and another one with ")".

It would be nice if Environments either quoted values by default or offered the option to do so.  Would also be nice if my #comments were preserved on import.

2 Replies

  • theo's avatar
    theo
    Occasional Contributor

    You might like varlock (free and open source). There is a 1Password plugin to pull data from individual items and environments, and you can add whatever comments you like, as well as use it with direnv without any issues.

  • emilysmith's avatar
    emilysmith
    Icon for 1Password Team rank1Password Team

    Hey Erikcw! My apologies for the delayed response here. That sounds super frustrating! I'll pass the feedback along to the team - maybe there's something we can do to better support quoted values.