Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

parseEnv ignores variables with no value #379

Closed
jlogsdon opened this issue May 17, 2013 · 1 comment · May be fixed by #380
Closed

parseEnv ignores variables with no value #379

jlogsdon opened this issue May 17, 2013 · 1 comment · May be fixed by #380

Comments

@jlogsdon
Copy link

This is inconsistent with the way shells handle them. I am working on a project that requires some variables to be set to bogus values in development, and I generally like to define it as a "no value" variable. This works if I source .powenv and start up the rack application manually, but parseEnv tosses out any variable without a value due to the regex /([^=]+)=(.+)/.

The obvious quick-fix is to put actual data into the variables, but I think the environment parsing should be consistent with other tools. I spent the last 30 minutes trying to figure out why this wasn't working properly.

@jeremy
Copy link
Member

jeremy commented Aug 11, 2014

Moved to #380

@jeremy jeremy closed this as completed Aug 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants