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: execlp/execvp needs case-correct PATH

On Feb 12 11:28, Thomas Wolff wrote:
> On 11.02.2015 14:28, ext Corinna Vinschen wrote:
> >On Feb 10 20:14, Thomas Wolff wrote:
> >>With the old setting (bogus first in path), apparently/assumedly exec*p
> >>somehow finds the file in /cygdrive/c/WINDOWS but then cannot start it from
> >>there because of the case mis-match.
> >>Thereâs still the inconsistency with shell behaviour.
> >I found the cause.  The function searching for executables in $PATH was
> >searching on the Win32 PATH variable.  The underlying conversion
> >functionality treats Win32 paths with default flags.  I revamped the
> >search function to iterate over the POSIX PATH variable so the
> >posix=[0|1] mount flag is taken into account.  As a nice side effect,
> >the search function is mow much simpler and easier to understand.
> >
> >I tested this new stuff in a variety of situations, but there's still
> >the chance that I missed something.  So this needs a good, sturdy testing.
> >
> >I just uploaded new snapshots to the usual place:
> >
> >
> >Please give it a try.
> Excellent, thank you. I also tested with ping vs. PING vs. PING.EXE and
> behaviour is consistent.

Thanks for testing.  Please continue to see if I accidentally broke
some other scenario.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpD83mELl0zu.pgp
Description: PGP signature

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