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

Replacing environment variables #62

Open
takase1121 opened this issue Jul 8, 2021 · 1 comment
Open

Replacing environment variables #62

takase1121 opened this issue Jul 8, 2021 · 1 comment

Comments

@takase1121
Copy link

I'm writing a reproc binding to lua, from what I tested REPROC_ENV_EXTEND does not allow me to replace existing envvars. Is this an explicit design decision or is it a bug?

An example of replacing existing envvars would be trying to append to PATH.

@DaanDeMeyer
Copy link
Owner

I didn't consider this when implementing REPROC_ENV_EXTEND. I'm not entirely sure what the behaviour is on all of the supported platforms when the environment block contains the same environment variable multiple times. Wouldn't the last occurrence override earlier occurrences? If so, would that suffice to replace environment variables? Let me know if this doesn't work as expected.

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

2 participants