This is the mail archive of the cygwin@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]

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/


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