This is the mail archive of the cygwin-developers 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: dealing with unset PATH


On Oct 28 13:40, Earnie Boyd wrote:
> Quoting Eric Blake <ebb9@byu.net>:
> 
> >
> >env PATH=. foo
> >
> >expecting to find ./foo and nothing else.  So a default fallback won't
> >necessarily solve everything.  Thoughts?
> >
> 
> Maybe use LIB_PATH or LD_LIBRARY_PATH to find the libraries but the
> foo program would need to set the dll path using these environments.

That would only work for dlopen, but not when spawning the process since
that calls CreateProcess, which depends on the Windows DLL load order.
The Windows loader wouldn't even find cygwin1.dll given the above example.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


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