bugs in chdir()?
Kazuhiro Fujieda
fujieda@jaist.ac.jp
Sat Dec 2 19:48:00 GMT 2000
Please look into the following sessions changing the current
directory to C:\TEMP.
Case 1. (No problem)
$ cd /cygdrive/c/TEMP/ # Use POSIX style path with a trailing slash.
$ pwd
/cygdrive/c/TEMP # Good.
Case 2.
$ cd C:/TEMP/ # Use Win32 style path with a trailing slash.
$ pwd
/cygdrive/c/TEMP/ # The trailing slash is left illegally.
Case 3.
$ cd '\TEMP' # Use Win32 style path with a backslash.
$ pwd
/TEMP # No such directory.
I think they are not bugs of chdir(), but bugs of the path
conversions and revealed via chdir(). The strace logs are
attached below.
____
| AIST Kazuhiro Fujieda <fujieda@jaist.ac.jp>
| HOKURIKU School of Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology
More information about the Cygwin-developers
mailing list