seems like exec works in cmd and powershell in windows but stalls when running in mingw bash in windows.