title: /usr/local/bin:/usr/bin: to the end of $PATH instead of at the top
body: <p>I'm trying to ICU code using the MSVC linker. However, launching Cygwin places the /usr/local/bin and /usr/bin in front of the path, causing link.exe to always call the Cygwin version, instead of the MSVC version. How can I fix this configuration issue? Currently, I launch the VS command prompt, then launch cygwin.bat.</p>
  
  <blockquote>
    <p>/usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/Microsoft
    F#/v4.0:/cygdr ive/c/Program Files (x86)/Microsoft Visual Studio
    10.0/VSTSDB/Deploy:/cygdrive/c /Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE:/cygdrive/c/Progra m Files (x86)/Microsoft
    Visual Studio 10.0/VC/BIN:/cygdrive/c/Program Files (x86 )/Microsoft
    Visual Studio 10.0/Common7/Tools:/cygdrive/c/Windows/Microsoft.NET/F
    ramework/v4.0.30319:/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c /Program Files (x86)/Microsoft Visual Studio
    10.0/VC/VCPackages:/cygdrive/c/Prog ram Files (x86)/HTML Help Workshop:/cygdrive/c/Program Files (x86)/Microsoft Vis ual Studio
    10.0/Team Tools/Performance Tools:/cygdrive/c/Program Files (x86)/Mic rosoft SDKs/Windows/v7.0A/bin/NETFX 4.0 Tools:/cygdrive/c/Program
    Files (x86)/Mi crosoft SDKs/Windows/v7.0A/bin:/cygdrive/c/Program
    Files/Common Files/Microsoft Shared/Windows
    Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c
    /Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygd
    rive/c/Program Files (x86)/Microsoft SQL
    Server/100/Tools/Binn:/cygdrive/c/Progr am Files/Microsoft SQL
    Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft  SQL
    Server/100/DTS/Binn:/cygdrive/c/Program Files (x86)/Microsoft
    ASP.NET/ASP.N ET Web Pages/v1.0:/cygdrive/c/Program
    Files/TortoiseHg:/cygdrive/c/Program Files 
    (x86)/GtkSharp/2.12/bin:/cygdrive/c/Users/tim/AppData/Roaming/npm:/cygdrive/c/P
    rogram Files (x86)/nodejs:/cygdrive/c/Program Files (x86)/Common
    Files/Intuit/QB POSSDKRuntime:/cygdrive/c/Program Files (x86)/Git/cmd</p>
  </blockquote>
  
  <p>ICU tells me to</p>
  
  <blockquote>
    <p>Ensure that the order of the PATH is MSVC, Cygwin, and then other
    PATHs. The configure script needs certain tools in Cygwin (e.g. grep).</p>
  </blockquote>
  
  <p><strong>Update.</strong> My cygwin.bat looks like this:</p>
  
  <blockquote>
    <p>@echo off</p>
    
    <p>C: chdir C:\cygwin\bin</p>
    
    <p>bash --login -i</p>
  </blockquote>
  
  <p>Not very helpful.</p>