#2206 msys.bat cmd.exe flood

MSYS
unread
nobody
None
Support
none
Unknown
False
2014-03-27
2014-03-27
Ilya Basin
No

I've got a freshly installed msys on Win7. When I click msys.bat, it hangs and I see tons of cnd.exe in task manager. The cause is that PROCESSOR_ARCHITECTURE env var doesn't change to "x86" when msys.bat restarts itself with %WINDIR%\SysWOW64\cmd.exe. Quickfix:

set COMSPEC=%WINDIR%\SysWOW64\cmd.exe
+set PROCESSOR_ARCHITECTURE=x86
%COMSPEC% /c %0 %1 %2 %3 %4 %5 %6 %7 %8 %9

Discussion