public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygpath -w converts relative paths to absolute windows paths
@ 2017-02-07  3:36 Roger Qiu
  2017-02-07 15:35 ` Andrey Repin
  2017-02-12 11:23 ` Corinna Vinschen
  0 siblings, 2 replies; 13+ messages in thread
From: Roger Qiu @ 2017-02-07  3:36 UTC (permalink / raw)
  To: cygwin

Hi,

I've found that `cygpath --windows '../` will give back an absolute 
windows path.

I thought this would only happen if you provide the `--absolute` flag, 
or when the path is a special cygwin path.

But this occurs just for normal directories.

I have come across a situation where I need to convert ntfs symlinks to 
unix symlinks and back. Sometimes these symlinks have relative paths 
them. Now by using cygpath --windows, I get back absolute paths, which 
means the integrity of the symlink isn't preserved.

Can `cygpath --windows '../directory'` give back `..\directory` for 
paths aren't special cygwin paths? These relative backslashes are 
supported in Windows right now.

Thanks,

Roger

-- 
https://github.com/CMCDragonkai
+61420925975


--
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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-02-13 19:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-07  3:36 cygpath -w converts relative paths to absolute windows paths Roger Qiu
2017-02-07 15:35 ` Andrey Repin
2017-02-07 23:13   ` cyg Simple
2017-02-07 23:34   ` Thomas Wolff
2017-02-08  1:00     ` Brian Inglis
2017-02-08 11:06     ` Andrey Repin
2017-02-08 22:42       ` Thomas Wolff
2017-02-11 21:27         ` cyg Simple
2017-02-09  1:17   ` Roger Qiu
2017-02-12 11:23 ` Corinna Vinschen
2017-02-12 17:39   ` Thomas Wolff
2017-02-13 15:16     ` Corinna Vinschen
2017-02-13 19:34       ` Thomas Wolff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).