This is the mail archive of the cygwin-patches@cygwin.com 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: [Patch]: c:.


At 10:57 PM 5/15/2004 -0400, Christopher Faylor wrote:
>On Sat, May 15, 2004 at 10:35:40PM -0400, Pierre A. Humblet wrote:
>>I have run more tests and noticed that c:. and c:..
>>are now interpreted as c:/
>>That's because of the new code that strips trailing dots
>>and spaces. 
>
>Shouldn't it be interpreted as c:/?  Since c: is interpreted
>as c:/, shouldn't c:/.. be interpreted as c:/?

As I am talking about c:. and c:.., not c:/..
Currently c:. is the current directory of drive c:
and c:.. is its parent.

$ cd e:.
$ /bin/pwd
/e/PROGRA~1/CYGNUS/SRC/WINSUP/CYGWIN
$ cd c:.
$ /bin/pwd
/c/HOME/PIERRE
$ cd e:..
$ /bin/pwd
/e/PROGRA~1/CYGNUS/SRC/WINSUP

You raise yet another point with c:/..
It doesn't exist for Windows, but both 1.5.9 and current cvs
map it to c:/

Pierre


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