public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* execlp/execvp needs case-correct PATH
@ 2015-02-08 23:04 Thomas Wolff
  2015-02-09  1:29 ` Thomas Wolff
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Thomas Wolff @ 2015-02-08 23:04 UTC (permalink / raw)
  To: cygwin

With a Windows case sensitive file system (and according mount flags
for /cygdrive), the PATH does not properly reflect casing of the actual
directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
However, the shell finds programs anyway, like e.g. notepad.
The exec*p system calls, on the other hand, do not find a program in this
case as demonstrated by the attached test program.
This is in contrast to the Linux (and POSIX?) manual page which claims
„The execlp(), execvp(), and execvpe() functions duplicate the actions
of the shell in searching for an executable file …“

Thomas

--
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-08 23:04 execlp/execvp needs case-correct PATH Thomas Wolff
@ 2015-02-09  1:29 ` Thomas Wolff
  2015-02-09  4:35 ` Andrey Repin
  2015-02-09 10:17 ` Corinna Vinschen
  2 siblings, 0 replies; 12+ messages in thread
From: Thomas Wolff @ 2015-02-09  1:29 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 98 bytes --]

Am 09.02.2015 um 00:04 schrieb Thomas Wolff:
> ... as demonstrated by the attached test program.


[-- Attachment #2: execp.c --]
[-- Type: text/plain, Size: 365 bytes --]

#include <unistd.h>
#include <string.h>
#include <errno.h>

#include <stdio.h>

int
main (int argc, char * * argv)
{
	char * prog = argc > 1 ? argv [1] : "notepad";
	int res;

	printf ("Calling exec %s\n", prog);

/*	res = execlp (prog, "-", 0);	*/
	res = execvp (prog, & argv [1]);
	if (res < 0) {
		fprintf (stderr, "errno %d - ", errno);
		perror ("exec");
	}
}

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-08 23:04 execlp/execvp needs case-correct PATH Thomas Wolff
  2015-02-09  1:29 ` Thomas Wolff
@ 2015-02-09  4:35 ` Andrey Repin
  2015-02-09  8:50   ` Thomas Wolff
  2015-02-09 10:17 ` Corinna Vinschen
  2 siblings, 1 reply; 12+ messages in thread
From: Andrey Repin @ 2015-02-09  4:35 UTC (permalink / raw)
  To: Thomas Wolff, cygwin

Greetings, Thomas Wolff!

> With a Windows case sensitive file system (and according mount flags
> for /cygdrive), the PATH does not properly reflect casing of the actual
> directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).

NTFS is a case-insensitive, but case-preserving file system.
I'll leave it up to you to google the implications.

> However, the shell finds programs anyway, like e.g. notepad.
> The exec*p system calls, on the other hand, do not find a program in this
> case as demonstrated by the attached test program.
> This is in contrast to the Linux (and POSIX?) manual page which claims
> „The execlp(), execvp(), and execvpe() functions duplicate the actions
> of the shell in searching for an executable file …“


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 09.02.2015, <07:20>

Sorry for my terrible english...

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-09  4:35 ` Andrey Repin
@ 2015-02-09  8:50   ` Thomas Wolff
  0 siblings, 0 replies; 12+ messages in thread
From: Thomas Wolff @ 2015-02-09  8:50 UTC (permalink / raw)
  To: cygwin


Am 09.02.2015 um 05:21 schrieb Andrey Repin:
> Greetings, Thomas Wolff!
>
>> With a Windows case sensitive file system (and according mount flags
>> for /cygdrive), the PATH does not properly reflect casing of the actual
>> directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
> NTFS is a case-insensitive, but case-preserving file system.
> I'll leave it up to you to google the implications.
Not quite, there is an optional feature (well-hidden) to switch to 
complete case sensitiveness.
It's also referred somewhere in the Cygwin user guide.

>
>> However, the shell finds programs anyway, like e.g. notepad.
>> The exec*p system calls, on the other hand, do not find a program in this
>> case as demonstrated by the attached test program.
>> This is in contrast to the Linux (and POSIX?) manual page which claims
>> „The execlp(), execvp(), and execvpe() functions duplicate the actions
>> of the shell in searching for an executable file …“
>
> --
> WBR,
> Andrey Repin (anrdaemon@yandex.ru) 09.02.2015, <07:20>
>
> Sorry for my terrible english...


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com


--
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-08 23:04 execlp/execvp needs case-correct PATH Thomas Wolff
  2015-02-09  1:29 ` Thomas Wolff
  2015-02-09  4:35 ` Andrey Repin
@ 2015-02-09 10:17 ` Corinna Vinschen
  2015-02-09 20:49   ` Thomas Wolff
  2 siblings, 1 reply; 12+ messages in thread
From: Corinna Vinschen @ 2015-02-09 10:17 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]

On Feb  9 00:04, Thomas Wolff wrote:
> With a Windows case sensitive file system (and according mount flags
> for /cygdrive), the PATH does not properly reflect casing of the actual
> directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
> However, the shell finds programs anyway, like e.g. notepad.
> The exec*p system calls, on the other hand, do not find a program in this
> case as demonstrated by the attached test program.
> This is in contrast to the Linux (and POSIX?) manual page which claims
> „The execlp(), execvp(), and execvpe() functions duplicate the actions
> of the shell in searching for an executable file …“

I can't reproduce this.  If I change my cygdrive mounts to
case-sensitive, my shell doesn't start notepad anymore:

  $ cat /etc/fstab
  none /mnt cygdrive binary,posix=1,user 0 0
  $ echo $SHELL
  /bin/tcsh
  $ echo $path
  /usr/bin /mnt/c/WINDOWS/system32 /mnt/c/WINDOWS /mnt/c/WINDOWS/System32/Wbem /mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0 /usr/lib/lapack
  $ notepad
  notepad: Command not found.
  $ /mnt/c/Windows/notepad
  <works>
  $


Corinna

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-09 10:17 ` Corinna Vinschen
@ 2015-02-09 20:49   ` Thomas Wolff
  2015-02-10  9:27     ` Corinna Vinschen
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Wolff @ 2015-02-09 20:49 UTC (permalink / raw)
  To: cygwin

Am 09.02.2015 um 11:17 schrieb Corinna Vinschen:
> On Feb  9 00:04, Thomas Wolff wrote:
>> With a Windows case sensitive file system (and according mount flags
>> for /cygdrive), the PATH does not properly reflect casing of the actual
>> directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
>> However, the shell finds programs anyway, like e.g. notepad.
>> The exec*p system calls, on the other hand, do not find a program in this
>> case as demonstrated by the attached test program.
>> This is in contrast to the Linux (and POSIX?) manual page which claims
>> „The execlp(), execvp(), and execvpe() functions duplicate the actions
>> of the shell in searching for an executable file …“
> I can't reproduce this.  If I change my cygdrive mounts to
> case-sensitive, my shell doesn't start notepad anymore:
>
>    $ cat /etc/fstab
>    none /mnt cygdrive binary,posix=1,user 0 0
>    $ echo $SHELL
>    /bin/tcsh
>    $ echo $path
>    /usr/bin /mnt/c/WINDOWS/system32 /mnt/c/WINDOWS /mnt/c/WINDOWS/System32/Wbem /mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0 /usr/lib/lapack
>    $ notepad
>    notepad: Command not found.
>    $ /mnt/c/Windows/notepad
>    <works>
>    $
Sorry, I forgot one detail: I added /cygdrive/c/Windows/System32 to my path
so the shell will find it, but yet execlp does not find it.

#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
int main (int argc, char * * argv)
{
         char * prog = argc > 1 ? argv [1] : "notepad";
         int res;
         printf ("Calling exec %s\n", prog);

         res = execlp (prog, "-", 0);
         if (res < 0) {
                 fprintf (stderr, "errno %d - ", errno);
                 perror ("exec");
         }
}


--
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-09 20:49   ` Thomas Wolff
@ 2015-02-10  9:27     ` Corinna Vinschen
  2015-02-10 19:14       ` Thomas Wolff
  0 siblings, 1 reply; 12+ messages in thread
From: Corinna Vinschen @ 2015-02-10  9:27 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1675 bytes --]

On Feb  9 21:49, Thomas Wolff wrote:
> Am 09.02.2015 um 11:17 schrieb Corinna Vinschen:
> >On Feb  9 00:04, Thomas Wolff wrote:
> >>With a Windows case sensitive file system (and according mount flags
> >>for /cygdrive), the PATH does not properly reflect casing of the actual
> >>directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
> >>However, the shell finds programs anyway, like e.g. notepad.
> >>The exec*p system calls, on the other hand, do not find a program in this
> >>case as demonstrated by the attached test program.
> >>This is in contrast to the Linux (and POSIX?) manual page which claims
> >>„The execlp(), execvp(), and execvpe() functions duplicate the actions
> >>of the shell in searching for an executable file …“
> >I can't reproduce this.  If I change my cygdrive mounts to
> >case-sensitive, my shell doesn't start notepad anymore:
> >
> >   $ cat /etc/fstab
> >   none /mnt cygdrive binary,posix=1,user 0 0
> >   $ echo $SHELL
> >   /bin/tcsh
> >   $ echo $path
> >   /usr/bin /mnt/c/WINDOWS/system32 /mnt/c/WINDOWS /mnt/c/WINDOWS/System32/Wbem /mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0 /usr/lib/lapack
> >   $ notepad
> >   notepad: Command not found.
> >   $ /mnt/c/Windows/notepad
> >   <works>
> >   $
> Sorry, I forgot one detail: I added /cygdrive/c/Windows/System32 to my path
> so the shell will find it, but yet execlp does not find it.

Which makes sense, given that notepad is not in C:\Windows\System32,
but in C:\Windows.


Corinna

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-10  9:27     ` Corinna Vinschen
@ 2015-02-10 19:14       ` Thomas Wolff
  2015-02-11  8:29         ` Csaba Raduly
  2015-02-11 16:49         ` Corinna Vinschen
  0 siblings, 2 replies; 12+ messages in thread
From: Thomas Wolff @ 2015-02-10 19:14 UTC (permalink / raw)
  To: cygwin

Am 10.02.2015 um 10:27 schrieb Corinna Vinschen:
> On Feb  9 21:49, Thomas Wolff wrote:
>> Am 09.02.2015 um 11:17 schrieb Corinna Vinschen:
>>> On Feb  9 00:04, Thomas Wolff wrote:
>>>> With a Windows case sensitive file system (and according mount flags
>>>> for /cygdrive), the PATH does not properly reflect casing of the actual
>>>> directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
>>>> However, the shell finds programs anyway, like e.g. notepad.
>>>> The exec*p system calls, on the other hand, do not find a program in this
>>>> case as demonstrated by the attached test program.
>>>> This is in contrast to the Linux (and POSIX?) manual page which claims
>>>> „The execlp(), execvp(), and execvpe() functions duplicate the actions
>>>> of the shell in searching for an executable file …“
>>> ...
>> Sorry, I forgot one detail: I added /cygdrive/c/Windows/System32 to my path
>> so the shell will find it, but yet execlp does not find it.
> Which makes sense, given that notepad is not in C:\Windows\System32, but in C:\Windows.
On my systems (Windows 7 Professional/Ultimate) it’s in both C:\Windows 
and C:\Windows\System32
(otherwise the shell wouldn’t have found it after adding to the path).

However, I could resolve the issue partly by putting
/cygdrive/c/Windows (or ../System32) in the path *before* the bogus
/cygdrive/c/WINDOWS - weird, but this way exec*p works.

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.

------
Thomas

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com


--
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-10 19:14       ` Thomas Wolff
@ 2015-02-11  8:29         ` Csaba Raduly
  2015-02-11 16:49         ` Corinna Vinschen
  1 sibling, 0 replies; 12+ messages in thread
From: Csaba Raduly @ 2015-02-11  8:29 UTC (permalink / raw)
  To: cygwin list

On Tue, Feb 10, 2015 at 8:14 PM, Thomas Wolff  wrote:
> Am 10.02.2015 um 10:27 schrieb Corinna Vinschen:
(snip)
>>
>> Which makes sense, given that notepad is not in C:\Windows\System32, but
>> in C:\Windows.
>
> On my systems (Windows 7 Professional/Ultimate) it's in both C:\Windows and
> C:\Windows\System32

Which is what I'd expect on most (if not all) Windows systems:

http://blogs.msdn.com/b/oldnewthing/archive/2006/03/28/563008.aspx

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-10 19:14       ` Thomas Wolff
  2015-02-11  8:29         ` Csaba Raduly
@ 2015-02-11 16:49         ` Corinna Vinschen
  2015-02-12 11:11           ` Thomas Wolff
  1 sibling, 1 reply; 12+ messages in thread
From: Corinna Vinschen @ 2015-02-11 16:49 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2596 bytes --]

On Feb 10 20:14, Thomas Wolff wrote:
> Am 10.02.2015 um 10:27 schrieb Corinna Vinschen:
> >On Feb  9 21:49, Thomas Wolff wrote:
> >>Am 09.02.2015 um 11:17 schrieb Corinna Vinschen:
> >>>On Feb  9 00:04, Thomas Wolff wrote:
> >>>>With a Windows case sensitive file system (and according mount flags
> >>>>for /cygdrive), the PATH does not properly reflect casing of the actual
> >>>>directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
> >>>>However, the shell finds programs anyway, like e.g. notepad.
> >>>>The exec*p system calls, on the other hand, do not find a program in this
> >>>>case as demonstrated by the attached test program.
> >>>>This is in contrast to the Linux (and POSIX?) manual page which claims
> >>>>„The execlp(), execvp(), and execvpe() functions duplicate the actions
> >>>>of the shell in searching for an executable file …“
> >>>...
> >>Sorry, I forgot one detail: I added /cygdrive/c/Windows/System32 to my path
> >>so the shell will find it, but yet execlp does not find it.
> >Which makes sense, given that notepad is not in C:\Windows\System32, but in C:\Windows.
> On my systems (Windows 7 Professional/Ultimate) it’s in both C:\Windows and
> C:\Windows\System32
> (otherwise the shell wouldn’t have found it after adding to the path).
> 
> However, I could resolve the issue partly by putting
> /cygdrive/c/Windows (or ../System32) in the path *before* the bogus
> /cygdrive/c/WINDOWS - weird, but this way exec*p works.
> 
> 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:
https://cygwin.com/snapshots/

Please give it a try.


Thanks,
Corinna

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-11 16:49         ` Corinna Vinschen
@ 2015-02-12 11:11           ` Thomas Wolff
  2015-02-12 11:35             ` Corinna Vinschen
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Wolff @ 2015-02-12 11:11 UTC (permalink / raw)
  To: cygwin

On 11.02.2015 14:28, ext Corinna Vinschen wrote:
> On Feb 10 20:14, Thomas Wolff wrote:
>> Am 10.02.2015 um 10:27 schrieb Corinna Vinschen:
>>> On Feb  9 21:49, Thomas Wolff wrote:
>>>> Am 09.02.2015 um 11:17 schrieb Corinna Vinschen:
>>>>> On Feb  9 00:04, Thomas Wolff wrote:
>>>>>> With a Windows case sensitive file system (and according mount flags
>>>>>> for /cygdrive), the PATH does not properly reflect casing of the actual
>>>>>> directories (e.g. C:\WINDOWS vs. C:\Windows, thanks MS...).
>>>>>> However, the shell finds programs anyway, like e.g. notepad.
>>>>>> The exec*p system calls, on the other hand, do not find a program in this
>>>>>> case as demonstrated by the attached test program.
>>>>>> This is in contrast to the Linux (and POSIX?) manual page which claims
>>>>>> „The execlp(), execvp(), and execvpe() functions duplicate the actions
>>>>>> of the shell in searching for an executable file …“
>>>>> ...
>>>> Sorry, I forgot one detail: I added /cygdrive/c/Windows/System32 to my path
>>>> so the shell will find it, but yet execlp does not find it.
>>> Which makes sense, given that notepad is not in C:\Windows\System32, but in C:\Windows.
>> On my systems (Windows 7 Professional/Ultimate) it’s in both C:\Windows and
>> C:\Windows\System32
>> (otherwise the shell wouldn’t have found it after adding to the path).
>>
>> However, I could resolve the issue partly by putting
>> /cygdrive/c/Windows (or ../System32) in the path *before* the bogus
>> /cygdrive/c/WINDOWS - weird, but this way exec*p works.
>>
>> 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:
> https://cygwin.com/snapshots/
>
> Please give it a try.
Excellent, thank you. I also tested with ping vs. PING vs. PING.EXE and 
behaviour is consistent.
------
Thomas

--
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: execlp/execvp needs case-correct PATH
  2015-02-12 11:11           ` Thomas Wolff
@ 2015-02-12 11:35             ` Corinna Vinschen
  0 siblings, 0 replies; 12+ messages in thread
From: Corinna Vinschen @ 2015-02-12 11:35 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

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:
> >https://cygwin.com/snapshots/
> >
> >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.


Thanks,
Corinna

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-02-12 11:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-08 23:04 execlp/execvp needs case-correct PATH Thomas Wolff
2015-02-09  1:29 ` Thomas Wolff
2015-02-09  4:35 ` Andrey Repin
2015-02-09  8:50   ` Thomas Wolff
2015-02-09 10:17 ` Corinna Vinschen
2015-02-09 20:49   ` Thomas Wolff
2015-02-10  9:27     ` Corinna Vinschen
2015-02-10 19:14       ` Thomas Wolff
2015-02-11  8:29         ` Csaba Raduly
2015-02-11 16:49         ` Corinna Vinschen
2015-02-12 11:11           ` Thomas Wolff
2015-02-12 11:35             ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).