Re: cygpath -w converts relative paths to absolute windows paths
- Date: Tue, 7 Feb 2017 18:00:09 -0700
- From: Brian Inglis <Brian.Inglis@xxxxxxxxxxxxxxxxxx>
- Subject: Re: cygpath -w converts relative paths to absolute windows paths
On 2017-02-07 16:34, Thomas Wolff wrote:
> Am 07.02.2017 um 16:30 schrieb Andrey Repin:
>> Greetings, Roger Qiu!
>>> I've found that `cygpath --windows '../` will give back an
>>> absolute windows path.
>> ".." is a special path, that can't be safely converted.
> How is the special meaning of ".." so much different in Windows than
> in Cygwin/Linux/POSIX that it could not be mapped?
> Things like dir .., cd .., type ..\sub\file all work comparably.
Think the problem is tracking logical directory paths following
symlinks makes it difficult to reconstruct a relative Windows
directory path - I like and use symlinks a lot as command line
accessible shortcuts to directories spread all over the place
- and shells that only track physical directory paths used to
drive me wild, as cd dir followed by cd .. left me off in the
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple