On Jun 12 16:00, LRN wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12.06.2013 14:47, Corinna Vinschen wrote: > > Hi Алексей, > > > > On Jun 11 21:10, Алексей Павлов wrote: > >> MSYS includes the following changes to Cygwin to support using native Win32 > >> programs: > >> 1. Automatic path mangling of command line arguments and environment > >> variables to Win32 form on the fly for Win32 applications inside bash.exe > > > > That's a bash change which does not affect the underlying Cygwin/MSYS DLL. > You misinterpreted that. > > The mangling is done in msys-2.dll, it's done every time a process is > spawned. The parent checks the dependencies of the child, and if child > does NOT depend on msys-2.dll (that is, if child is not a MSYS > application), the parent will spawn it with mangled environment (thus > the child will not get POSIX paths in envvars, such as PATH) mangled and > arguments
This is default in Cygwin for a long time. When Cygwin starts, a small number of variables is converted from Windows to POSIX style, namely PATH, HOME, LD_LIBRARY_PATH, TMPDIR, TMP, and TEMP. If a Cygwin process execve's a non-Cygwin process, the whole thing is done backwards. This is not done for any other variable, and in no direction, because trying to recognize other variable's content as path and then converting it to the other style is pure speculation on the DLL's part. The result is broken as often as not. Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
