This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygpath problem
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 12 Jun 2013 21:33:52 +0200
- Subject: Re: cygpath problem
- References: <CABEPuQJCCX6he=-kdMX_XNA-t8DgOqZZxbYpB+3ZAqqqC3hT4w at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
On Jun 12 22:15, ÐÐÐÐÑÐÐ ÐÐÐÐÐÐ wrote:
> Hi everybody!
>
> I have a question about using cygpath.
> Trying to get windows paths in different locations
>
> alexey@78CE /cygdrive/c
> $ cygpath -w .
> .
> alexey@78CE /cygdrive/c
> $ cygpath -w /cygdrive/c
> C:\
> alexey@78CE /cygdrive/c
> $ cd /home
> alexey@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