Vincent Torri <vincent.to...@gmail.com> writes: > On Thu, Jan 10, 2019 at 11:43 PM Óscar Fuentes <o...@wanadoo.es> wrote: >> >> >> Are you using the MSYS2 toolchain or the Mingw-W64 toolchain? because >> `system' on the later uses the Windows shell (CMD.EXE or whatever). > > > $ gcc -v > Using built-in specs. > COLLECT_GCC=D:\Documents\msys2\mingw64\bin\gcc.exe > COLLECT_LTO_WRAPPER=D:/Documents/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.1/lto-wrapper.exe > Target: x86_64-w64-mingw32
This is the native (*) Mingw-w64 toolchain. The `system' library call provided by the runtime of this toolchain, uses the Windows shell by default, which is incompatible with bash and other POSIX shells and therefore it is expected that your command fails. * The non-native MSYS2/Cygwin toolchain uses the POSIX emulation layer and associated userland. I suppose that `system' uses `sh' as the shell there. _______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users