You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiled and executed on WIndows, it randomly displays either 'foo' or 'BAR'.
This happens because process::Command represents environment block as a HasMap<CString, CString>, so it treats "foo" and "FOO" as different variables, whereas Windows considers them to be the same one. When child process is spawned, both get added into the environment block, however Windows keeps only the last one.
The text was updated successfully, but these errors were encountered:
The following program demonstrates the problem:
When compiled and executed on WIndows, it randomly displays either 'foo' or 'BAR'.
This happens because process::Command represents environment block as a HasMap<CString, CString>, so it treats "foo" and "FOO" as different variables, whereas Windows considers them to be the same one. When child process is spawned, both get added into the environment block, however Windows keeps only the last one.
The text was updated successfully, but these errors were encountered: