This is the mail archive of the
mailing list for the Cygwin project.
Re: get cygpath to leave relative paths as relative?
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 12 Dec 2007 11:15:41 +0100
- Subject: Re: get cygpath to leave relative paths as relative?
- References: <firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
On Dec 11 21:25, Brent wrote:
> Corinna wrote:
> >This is not always possible when converting POSIX paths to Win32 paths
> >for a couple of reasons. One reason is that a relative path might
> >contain symlinks, another one is that a path containing .. could cross
> >mount points. To recognize both cases extra processing is necessary
> >which might convert the path to an absolute form.
> Thanks for responding.
> You use qualifiers like "not always possible" and "might". Does that imply that cygpath CAN leave relative paths as relative under certain circumstances?
If you use "..", no.
> What I am seeing is that it always converts relative paths to absolute
> paths, even in cases that are outside the scenarios that you mention.
$ cygpath -w src/gawk
$ cygpath -w ../corinna/src/gawk
> In particular, I have no symlinks. But I am not sure what you mean by
> "cross mount points. Sorry for my ignorance [...]
Didn't you read the user's manual?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html