delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/10/12:57:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <6616C063.DA004140@veritas.com>
Date: Wed, 10 Apr 2024 09:37:55 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Andrej Borsenkow <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
CC: Cygwin mailing list <Cygwin AT Sourceware DOT Cygnus DOT Com>
Subject: Re: cygpath usage (was: RE: Posible bug in cygpath Windows -> Unix
conversion)
References: <000501c03282$23152720$21c9ca95 AT mow DOT siemens DOT ru>

Nope, you are right.  I was just pointing out that, looking at the
results of:

  cygpath -a -u a:abc
and
  cygpath -u a:abc

it looks like the command is treating the argument as absolute also, in
this case.

There was another message on this thread from Chris Faylor saying he had
found the cause of the problem and fixed it.

Andrej Borsenkow wrote:
> 
> >
> > It looks like the conversion assumes a "drive_letter:slash" and so is
> > cutting the first 3 characters, producing the output you see.  This is
> > probably the result of using the -a option, forcing cygpath to assume
> > the source string is an absolute path when in fact it is not.
> >
> 
> I believe, the option -a means, that the *result* should be absolute path.
> Look here:
> 
> mw1g017 AT MW1G17C% cygpath -a -u foo
> /cygdrive/c/win32app/bin/foo
> mw1g017 AT MW1G17C% cygpath -a -w foo
> c:\win32app\bin\foo
> 
> At least, I always understood it this way. Correct me if I'm wrong.
> 
> -andrej

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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