5 Mar 2007 19:30
Re: UNC path names
Brendan Oakley <gentux2 <at> gmail.com>
2007-03-05 18:30:55 GMT
2007-03-05 18:30:55 GMT
The behavior might depends on the program. On Windows different shells behave differently. In Windows XP's cmd.exe: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\HP_Owner>cd \\eeyore\brendan '\\eeyore\brendan' CMD does not support UNC paths as current directories. In 4NT: 4NT 3.01A Windows NT 5.00 Copyright 1988-1998 Rex Conn & JP Software Inc. All Rights Reserved [c:\documents and settings\brendan]cd \\c0web100\d\ [c:\documents and settings\brendan] See CMD blames itself for the limitation. 4NT does not give an error message at all, but whether it has actually done anything I can't tell. Maybe it's like 'cd' on a drive other than the current one, but how to refer to that drive I don't know. IIRC on libc ash and bash, the 'cd' command changes the current drive as well as the current directory, unlike OS/2's cmd which only changes the current directory on the referenced drive, leaving the current drive alone. My point is that whether this behavior of chdir() is a bug or not(Continue reading)
RSS Feed