>From the installation instructions, it appears that the correct way to run msys2 is via the msys2_shell.bat/mingw64_shell.bat scripts. However, using these results in a new console window being opened, using the standard Windows console.
I normally use ConEmu for my console sessions, and I would like to do the same for msys2. How would I start the msys2 shell *without* using the supplied batch files? Is it simply a case of setting the MSYSTEM environment variable to one of MINGW64, MINGW32, or MSYS and then running msys64\usr\bin\sh.exe --login -i? Also, I am looking to script some of my builds, using either Python or Powershell (using sh isn't an option, for reasons that probably aren't important here). How would I do that? Some questions I have are: 1. Are the --login -i flags essential to correct working? Would I be able, for example, to simply run msys64\usr\bin\sh.exe -c "configure; make"? 2. The standard scripts switch to a directory of /home/<username>. For a scripted build, I'd want the msys shell to run in the directory I was in when I ran the sh command (as that's where my makefile will be). How do I avoid the directory change? Setting MSYSTEM and then just running sh.exe seems to leave me with a broken PATH (the "mount" command oesn't work, for example). But using --login changes my directory. From what I can find, I need /etc/profile to run to get a usable PATH, but that seems to change my directory, although I can't work out why. Can anyone advise me please? I've not had this much trouble in the past with the older mingw msys, and although I'd like to move to a newer (and as far as I can see, better maintained) environment, I'm not sure how I can if I can't achieve the sort of setup I need... Thanks, Paul ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
