{"action":"opened","issue":{"url":"https://api.github.com/repos/cbucher/console/issues/345","repository_url":"https://api.github.com/repos/cbucher/console","labels_url":"https://api.github.com/repos/cbucher/console/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/cbucher/console/issues/345/comments","events_url":"https://api.github.com/repos/cbucher/console/issues/345/events","html_url":"https://github.com/cbucher/console/issues/345","id":154354536,"number":345,"title":"System Environment Variables override Local Environment Variables for Child processes","user":{"login":"adamsd5","id":997320,"avatar_url":"https://avatars.githubusercontent.com/u/997320?v=3","gravatar_id":"","url":"https://api.github.com/users/adamsd5","html_url":"https://github.com/adamsd5","followers_url":"https://api.github.com/users/adamsd5/followers","following_url":"https://api.github.com/users/adamsd5/following{/other_user}","gists_url":"https://api.github.com/users/adamsd5/gists{/gist_id}","starred_url":"https://api.github.com/users/adamsd5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamsd5/subscriptions","organizations_url":"https://api.github.com/users/adamsd5/orgs","repos_url":"https://api.github.com/users/adamsd5/repos","events_url":"https://api.github.com/users/adamsd5/events{/privacy}","received_events_url":"https://api.github.com/users/adamsd5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T22:10:32Z","updated_at":"2016-05-11T22:10:32Z","closed_at":null,"body":"### Expected Behavior\r\nI expect to see environment variables for Console.exe to pass into the shell process.  In the steps below, I expect **echo %FOO%** to show \"FromLocal\"\r\n\r\n### Actual Behavior\r\nIn this test case, the Windows System Environment variable is overriding the variable in Console.exe's environment\r\n\r\n### Steps to reproduce\r\n1. What steps consistently cause this behavior?\r\nIn Windows Environment variables, add a System environment variable:\r\nFOO=FromSystem\r\nIn a Windows Command prompt, type:\r\nset FOO=FromLocal\r\necho %FOO%\r\n  - Note that the local setting is in the current environment\r\nConsole.exe\r\n  - Note that I have Windows command shell as the default that opens, and I set no env vars in the settings.\r\nYou can use procexp.exe at this point to see the Console.exe process in fact has FOO=FromLocal.  \r\nIn the cmd shell that opens in Console.exe's window, type:\r\necho %FOO%\r\n\r\n2. What does someone need to do to recreate the issue?\r\nFollow the steps above.\r\n\r\n### Diagnostic Report\r\n```\r\n[conzoleZ Diagnostic Info.txt](https://github.com/cbucher/console/files/260312/conzoleZ.Diagnostic.Info.txt)\r\n\r\n(I tried testing with the beta version, but my work-IT blocks your download site.  I also tried building the latest code, which I can do, but I have trouble running it; something related to the Hook... happy to share more and help debug this if you want some help;  If I figure it out, I'll send a pull request.)\r\n```\r\n\r\n### Crash Report\r\nNo crash report"}}