[Issue 18425] std.process environment["VAR"] = "NAME" does not always take effect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 15 17:12:12 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18425

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Rainer Schuetze from comment #1)
> 	environment["DLAGS"] = "2";

Was this a hand-copied typo, or was there a typo in the original?

> The issue is that the C runtime caches the environment changes, but
> std.process.environment bypasses the cache. Subsequent C runtime calls like
> getenv, system or spawn use the cached environment.

Bleh, too bad we can't update snn.lib. This is like papering over the problem.

I looked at the code, and it's very complex, so I don't know that it's worth
trying to fix.

--


More information about the Digitalmars-d-bugs mailing list