Is there a way that a program can do:

   status = system("some command");

and have it run in an environment other than cmd.exe? Perhaps by setting some environmental variable(s) before calling system()? Or maybe there is some system_variant()
function which can do this?

Currently if a shell script is running in an MSYS2 bash environment and calls a program which then does a system() call the command executes in cmd.exe, which for most linux or unix scripts is not at all the environment that command expects!

Thanks,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to