On Mon, Oct 02, 2006 at 04:04:30AM +0000, Tom Lee wrote: >since the root is c:/cygwin, "mv *.txt /my/directory" under cygwin will >goes to c:/cygwin/my/directory not c:/my/directory. > >it looks that all C program containing getcwd(), chdir() functions will not >work under cycgwin unless these C programs are compiled under cygwin, since >they won't recognize /cygdrive/c.
Well, duh? >I really don't see any difference for using /cygdrive/c/ from c:/ under >windows. /cygdrive/c/ is windows specific path, so does c:/. Cygwin emulates Linux. "c:" has no special meaning to Linux so programs which are designed to work on Linux may not understand the Windows notion of "c:" as "the C drive". We invented "/cygdrive" as a method for referencing "the C drive" in a Linux/POSIX fashion. This is how things have worked in Cygwin for years. It is not going to change and it is not really worth a long email discussion thread. Can we move on now, please? -- Christopher Faylor spammer? -> [EMAIL PROTECTED] Cygwin Co-Project Leader [EMAIL PROTECTED] TimeSys, Inc. -- 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/