www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Fri, 29 May 2009 15:43:14 -0400 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygpath -a anomaly |
Message-ID: | <20090529194313.GB28223@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <0105D5C1E0353146B1B222348B0411A201BCE5EB09 AT NIHMLBX02 DOT nih DOT gov> |
MIME-Version: | 1.0 |
In-Reply-To: | <0105D5C1E0353146B1B222348B0411A201BCE5EB09@NIHMLBX02.nih.gov> |
User-Agent: | Mutt/1.5.19 (2009-01-05) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
On Fri, May 29, 2009 at 03:20:28PM -0400, Buchbinder, Barry (NIH/NIAID) [E] wrote: >With cygdrive prefix = /, from the root directory of a drive (e.g., >/c = c:\ or /h = h:\), when asking for the absolute unix path with -au, >cygpath doubles the / between the drive letter and the first directory >of the path. > > /h> echo Home | cygpath -au -f - > /h//Home > /h> echo Home | cygpath -aw -f - > h:\Home > >This does not happen when one is not in the root directory of the drive. > > /h> cd Home > /h/Home> echo cartoons | cygpath -au -f - > /h/Home/cartoons > /h/Home> echo cartoons | cygpath -aw -f - > h:\Home\cartoons > >This does not happen when > > /h> cd .. > /h> echo Home\\cartoons | cygpath -au -f - > /h//Home/cartoons > /h> echo Home/cartoons | cygpath -aw -f - > h:\Home\cartoons > >This is with cygwin 1.5, everything up to date. Note that this also >happens on C:. Cygwin is in c:\\cygwin. Not much is going to be done about this now. This seems to work fine on Cygwin 1.7. cgf -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |