delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/12/15:34:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=old7Z+NWc6oqYxSNnQzm6p6M53IGhF
e7ebBvAZDvT1h6v1fnzvowKdlSgQVWvcqB7Aq1JxRDp8uV8Wmgia6os9bsIy9C1x
JJrPNnx6TeSjtzwDiHIBALiw3HTaYV8srcQ8+ioa9CqbXBygZTXImYfGc7i+Y2MY
NJocyTechMvpU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=EZCPRFw62bwZWstS34s2o5ZJx0k=; b=NjHI
hYJ/KYq1gp2VcYgRZ6wU5jiMxyqWEHzGJ+zqa4TWxxcE8rxJaL9RZCTWu7cHw0JO
r7aLSH2QMZnLV9SbWlCaLyvUxjP70pXXE0SylJcNZ5hqyLO8ljZ14wA4PYBtdW4H
dB5m3ObQl0Xgi6YNjVFUR1v0xAzIPEViDg58C0Q=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,TW_YG autolearn=ham version=3.3.1
Date: Wed, 12 Jun 2013 21:33:52 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygpath problem
Message-ID: <20130612193352.GB1736@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CABEPuQJCCX6he=-kdMX_XNA-t8DgOqZZxbYpB+3ZAqqqC3hT4w AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CABEPuQJCCX6he=-kdMX_XNA-t8DgOqZZxbYpB+3ZAqqqC3hT4w@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Note-from-DJ: This may be spam

On Jun 12 22:15, Алексей Павлов wrote:
> Hi everybody!
> 
> I have a question about using cygpath.
> Trying to get windows paths in different locations
> 
> alexey AT 78CE /cygdrive/c
> $ cygpath -w .
> .
> alexey AT 78CE /cygdrive/c
> $ cygpath -w /cygdrive/c
> C:\
> alexey AT 78CE /cygdrive/c
> $ cd /home
> alexey AT 78CE /home
> $ cygpath -w .
> C:\Test\cross32\home\
> 
> As I see I cant properly get windows path if I try to get it on
> current directory that contain /cygdrive prefix.
> 
> 
> Is it feature or bug?

Try the -a  (for "absolute") flag:

  $ cygpath -wa .
  C:\cygwin64\home\corinna


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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