You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just recently got a ticket filed on a npm module, dotenv, I help maintain. It has to do with a "=" being at the front of an environment variable. While investigating I noticed our parser was picking up on this character fine, but when trying to use dotenv's preload option the tests started failing. After seeing those test I tried to just load the env directly into node.
All of these commands output FOO to the console with no equal sign. Looking at the test node has been doing this for a few versions. Is this intended behavior?
The text was updated successfully, but these errors were encountered:
This seems to be the result of an OS X/BSD implementation detail, and apparently stripping the leading = occurs when setting the variable, not in Node.js. I don’t think there’s anything that can be done against this.
@Fishrock123 I am using ZSH. I did login with bash and the leading = is retained. Sorry for not investigating this more. This does seems to be an issue with running node while using ZSH. Closing.
Hello
I just recently got a ticket filed on a npm module, dotenv, I help maintain. It has to do with a "=" being at the front of an environment variable. While investigating I noticed our parser was picking up on this character fine, but when trying to use dotenv's
preload
option the tests started failing. After seeing those test I tried to just load the env directly into node.All of these commands output
FOO
to the console with no equal sign. Looking at the test node has been doing this for a few versions. Is this intended behavior?The text was updated successfully, but these errors were encountered: