Re: execlp/execvp needs case-correct PATH

2015-02-12 Thread Corinna Vinschen
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 becau

Re: execlp/execvp needs case-correct PATH

2015-02-12 Thread Thomas Wolff
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

Re: execlp/execvp needs case-correct PATH

2015-02-11 Thread Corinna Vinschen
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 >

Re: execlp/execvp needs case-correct PATH

2015-02-11 Thread Csaba Raduly
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:\Windo

Re: execlp/execvp needs case-correct PATH

2015-02-10 Thread Thomas Wolff
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 ca

Re: execlp/execvp needs case-correct PATH

2015-02-10 Thread 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.

Re: execlp/execvp needs case-correct PATH

2015-02-09 Thread Thomas Wolff
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,

Re: execlp/execvp needs case-correct PATH

2015-02-09 Thread 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. n

Re: execlp/execvp needs case-correct PATH

2015-02-09 Thread Thomas Wolff
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-insensi

Re: execlp/execvp needs case-correct PATH

2015-02-08 Thread 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

Re: execlp/execvp needs case-correct PATH

2015-02-08 Thread Thomas Wolff
Am 09.02.2015 um 00:04 schrieb Thomas Wolff: ... as demonstrated by the attached test program. #include #include #include #include int main (int argc, char * * argv) { char * prog = argc > 1 ? argv [1] : "notepad"; int res; printf ("Calling exec %s\n", prog); /*

execlp/execvp needs case-correct PATH

2015-02-08 Thread 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...). However, the shell finds programs anyway, like e.g. notepad. The exec*p system calls, on the othe