Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.2.1.1.0.20030602165955.00a9ed40@mailone.real.com> X-Sender: csiemens AT mailone DOT real DOT com Date: Mon, 02 Jun 2003 17:17:36 -0700 To: cygwin AT cygwin DOT com From: Curtis Siemens Subject: 1.26: cygpath -u -a bug Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/