delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/02/20:17:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <csiemens AT real DOT com>
Subject: 1.26: cygpath -u -a bug
Mime-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019