Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.dotenvIssues and PRs related to .env file parsingIssues and PRs related to .env file parsing
Description
Meaning if you have this in your .env file:
FOO="BAR"This command:
node --env-file=.env -e 'console.log({FOO: process.env.FOO })'Will print this:
{FOO: '"BAR"'}I.e. the variable value includes the quotes. (The spaces aren't included in the value, though.) I think this is unexpected.
If this is not intentional there needs to be white space skipping before this line:
Line 153 in 9495a2b
| if (content.front() == '"'){ |
tonivj5 and bipin0x01
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.dotenvIssues and PRs related to .env file parsingIssues and PRs related to .env file parsing