I'm trying to start git bash with environment variables from vcvarsall.bat using ConEmu.
Currently my startup task is just "C:\Program Files\Git\bin\vc14.bat"
.
The bat file looks as following:
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
cls
"C:\Program Files\Git\bin\sh.exe" --login -i
The problem is that when I close ConEmu I get this message
Is there any way to do what my bat file is doing from ConEmu?
C:\Program Files\Git\usr\bin\sh.exe
instead ofC:\Program Files\Git\bin\sh.exe
becauseGit\bin\sh.exe
is just a wrapper.sh.exe
asynchronously, because when you run it from cmd's batch,cmd.exe
waits for forsh.exe
completion, and ConEmu sees thecmd.exe
in the console process, which rises "Incomplete operations" warning.Correct batch: