This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygpath problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]