This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
1.26: cygpath -u -a bug
- From: Curtis Siemens <csiemens at real dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 02 Jun 2003 17:17:36 -0700
- Subject: 1.26: cygpath -u -a bug
When you convert a relative path to absolute using cygpath.exe
and it has ".." (backup one dir) in it, it goofs up in a particular
"to Unix" case, but not the "to Windows" case. I checked the
FAQ, did a google and couldn't find any knowledge of this bug.
My Cygwin is installed under c:\cygwin and I have the latest
Cygwin installed (enter tree installed fresh, Cygwin DLL 1.3.22-1
from Mar 18, 2003 release).
Works Properly:
------------------------
bash-2.05b> cygpath.exe -a -u "A/B/./.."
/home/user/A/
Does Not Work:
-----------------------
bash-2.05b> cygpath.exe -a -u "A/B/.//.."
/home/user/A/B/
Works Properly:
------------------------
bash-2.05b> cygpath.exe -a -w "A/B/.//.."
c:\cygwin\home\user\A
This bug manifests itself when the path has the follow:
1. Is relative, not absolute already.
2. Has "//" before the ".."
3. Has "/." before the "//"
Curtis Siemens
--
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/