This is the mail archive of the
mailing list for the Cygwin project.
cygpath -w converts relative paths to absolute windows paths
- From: Roger Qiu <roger dot qiu at polycademy dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 7 Feb 2017 14:35:58 +1100
- Subject: cygpath -w converts relative paths to absolute windows paths
- Authentication-results: sourceware.org; auth=none
I've found that `cygpath --windows '../` will give back an absolute
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple