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

Creating a process without any environment variables #65

Open
khinsen opened this issue Apr 14, 2021 · 0 comments
Open

Creating a process without any environment variables #65

khinsen opened this issue Apr 14, 2021 · 0 comments

Comments

@khinsen
Copy link

khinsen commented Apr 14, 2021

I would like to create a process without any environment variables, but my conclusion after a study of the code is that it isn't possible.

The key comment in OSSUnixSubprocess>>#buildPrimitiveEnvArgument is "By default, if none variable was set, we add all the ones existing in parent". The only way to prevent this from happening is to set a variable explicitly via OSSUnixSubprocess>>#environmentAt:put:, meaning that I have at least one variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant