This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Incomplete environ when running MinGW apps?


Hmm. I think you're right; I need to give up looking for a robust way to do this. I think I'll:

if(
   (system(uname) looks sane) &&
   (system(cygpath -m /bin/sh) returns success))
     use CreateProcess with /bin/sh path returned by cygpath;
 else
     use CreateProcess with cmd.exe /c

And I'll need to test it when run from a DOS box, with Cygwin's bin in the path.

That should keep most of the people happy most of the time. Who can ask for more from Windows? :)

Thanks

-Paul

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]