Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env variables broken on OS X #4672

Closed
weinand opened this issue Mar 25, 2016 · 3 comments
Closed

env variables broken on OS X #4672

weinand opened this issue Mar 25, 2016 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority

Comments

@weinand
Copy link
Contributor

weinand commented Mar 25, 2016

In the VS Code alpha 51209bb
task are no longer working:

2016-03-25 14-24-14

Reverting the latest commit related to env vars (4cd1c0f) seems to fix this problem.

On OS X the env command does not support a --null option:

2016-03-25 14-11-34

@weinand weinand added bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority labels Mar 25, 2016
@Tyriar
Copy link
Member

Tyriar commented Mar 25, 2016

Thanks for reverting @weinand, looking at this now.

@Tyriar
Copy link
Member

Tyriar commented Mar 25, 2016

The problem with not using --null is that multi-line vars can always break the system. Consider the following:

export TEST_ENV_VAR="Multi
LINE=string"

Which is output in env or printenv as:

TEST_ENV_VAR=Multi
LINE=string

@Tyriar
Copy link
Member

Tyriar commented Mar 25, 2016

Lists all environment variables names: compgen -A variable

It seems to include additional ones on top of env though.

@Tyriar Tyriar closed this as completed in 3ed0dfa Mar 25, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority
Projects
None yet
Development

No branches or pull requests

2 participants