delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/19/20:40:52

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.0.9.2.20030319173807.02ba6d80@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Wed, 19 Mar 2003 17:42:07 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: 'cygpath -ml <posix_8.3_path>' bug?
In-Reply-To: <5.2.0.9.0.20030319184305.09c2eea8@rogue.codemeta.com>
Mime-Version: 1.0

Lee,

Perhaps. In particular, if one uses Windows mode (instead of mixed 
mode) you get the result I think you were expecting (except, of course, 
for the orientation of the name separators).

Witness:

% cygpath -d /cygdrive/d/Documents\ and\ Settings/
d:\DOCUME~1\

% cygpath -lm "d:\DOCUME~1\"
cygpath -lm "d:\DOCUME~1\"
d:/DOCUME~1/

% cygpath -w "d:\DOCUME~1\"
d:\DOCUME~1\

% cygpath -lw "d:\DOCUME~1\"
d:\Documents and Settings\


Randall Schulz


At 17:13 2003-03-19, Lee D. Rothstein wrote:
>My reading of the cygpath documentation and
>embedded help is that:
>
>   cygpath -ml /cygdrive/c/docume~1
>
>or:
>
>   cygpath --mixed --long-name /cygdrive/c/docume~1
>
>should output:
>
>   c:/Documents and Settings
>
>Of course:
>
>   cygpath --mixed "$(cygpath --windows --long-name /cygdrive/c/docume~1)"
>
>does yields the correct results.
>
>Isn't this a bug in 'cygpath'?
>
>
>--
>Lee D. Rothstein -- lee AT veritech DOT com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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