On Sep 23 12:46, John Emmas wrote: > I first started using cygwin almost exactly a year ago. Because of other > pressures I put it on the back burner (about 6 months ago) at which point, > it was current. However, I haven't upgraded for about 6 months. > > This morning I needed to compile an app that uses the C call, > getenv("PATH"); Let's say for the sake of argument that this was my path > (as displayed in a console window after typing "set") :- > > /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/a:/b:/c:/d:/e > > That's not my actual path - just an example. Cygwin's getenv() is returning > something like this:- > > /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/a:/b:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/c:/d:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/e:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin: > > Basically, any path folder that ends in '/bin' is being inserted into the > path multiple times and I just wondered if this was a known problem? > FWIW if I use the glib equivalent (g_getenv) I get the same problem (which > probably just indicates that g_getenv is a wrapper around getenv). > > Thanks for any advice,
I can't reproduce this behaviour. Maybe the cygcheck output as described here vvvv > Problem reports: http://cygwin.com/problems.html would help to figure out what's wrong on your machine. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple