| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <468A1024.8000007@mff.cuni.cz> |
| Date: | Tue, 03 Jul 2007 11:00:20 +0200 |
| From: | Pavel Kudrna <Pavel DOT Kudrna AT mff DOT cuni DOT cz> |
| User-Agent: | Thunderbird 1.5 (Windows/20051201) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | RE: bug in cygwin_conv_to_posix_path() caused by period in win32 path |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
>
>
> * /From/: "Dave Korn" <dave dot korn at artimi dot com>
>
> They are legal, but there's no possible way to convert them to POSIX, which
> has no notion of a per-drive current directory.
>
Ok, but Cygwin != POSIX :-)
Cygwin application has environment variable for each drive letter to
remember current drive. See example and run it from cmd.exe.
Pavel Kudrna
/* file: envp.c
gcc -o envp envp.c
*/
#include <stdio.h>
int main(int argc,char* argv[], char* envp[])
{
char **p;
for(p=envp;*p;p++) if (**p=='!') printf( "%s\n", *p );
return 0;
}
C:\Program Files\cygwin\bin> cd L:\home\kudrna\test\z
C:\Program Files\cygwin\bin> L:envp
!C:=C:\Program Files\cygwin\bin
!EXITCODE=00000000
!L:=L:\home\kudrna\test\z
!S:=S:\
!T:=T:\
!U:=U:\
C:\Program Files\cygwin\bin>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |