title: Unable to cleanly set GOOS environment variable on win7
body: <p>I am trying to use golangs cross compilation feature to compile on my machine (windows 7) to switch between compiling for linux and amd64.</p>
  
  <p>I set up everything properly and created the enviroment variables</p>
  
  <pre><code>GOARCH = amd64
  GOOS = linux
  </code></pre>
  
  <p>My problem occurs whenever I try to switch between platforms by changing GOOS to either linux or amd64. I use <a href="http://sourceforge.net/projects/console/" rel="nofollow">Console 2</a> to manage my standart cmd, cygwin console and git console.
  After changing GOOS with:</p>
  
  <pre><code>xset GOOS=amd64
  </code></pre>
  
  <p>different consoles show different values for the variable e.g:</p>
  
  <pre><code>//git bash
  echo $GOOS
  linux
  //cmd
  echo %GOOS%
  amd64
  </code></pre>
  
  <p>This happens even after restarting all consoles.
  Additionally I am suddenly unable to access parts of my system!
  Trying to access my "Advanced System settings" in my System properties returns now a warning:</p>
  
  <pre><code>"%windir%\system32\systempropertiesadvanced.exe" could not be found.
  </code></pre>
  
  <p>which sounds to my like win7 suddenly can't handle its own environment variables anymore.</p>
  
  <p>This also means that I can't change the variables through the windows GUI anymore.</p>
  
  <p>On top of all that the "go" command is no longer bound and I am unable to build anything with go.</p>
  
  <p>My only solution this far is to restart my entire system every time I change a variable.
  After a restart the variable is changed an everything works fine until I want to change GOOS again.</p>
  
  <p>I would be very happy about any kind of input, I am new to go and assume that I am missing something obvious.</p>
  
  <p>Thanks in advance</p>