Re: cygpath -w converts relative paths to absolute windows paths

2017-02-13 Thread Thomas Wolff
Am 13.02.2017 um 16:16 schrieb Corinna Vinschen: On Feb 12 18:38, Thomas Wolff wrote: Am 12.02.2017 um 12:23 schrieb Corinna Vinschen: On Feb 7 14:35, Roger Qiu wrote: Hi, I've found that `cygpath --windows '../` will give back an absolute windows path. I thought this would only happen if

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-13 Thread Corinna Vinschen
On Feb 12 18:38, Thomas Wolff wrote: > Am 12.02.2017 um 12:23 schrieb Corinna Vinschen: > > On Feb 7 14:35, Roger Qiu wrote: > > > Hi, > > > > > > I've found that `cygpath --windows '../` will give back an absolute > > > windows > > > path. > > > > > > I thought this would only happen if you

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-12 Thread Thomas Wolff
Am 12.02.2017 um 12:23 schrieb Corinna Vinschen: On Feb 7 14:35, Roger Qiu wrote: 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

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-12 Thread Corinna Vinschen
On Feb 7 14:35, Roger Qiu wrote: > 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

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-11 Thread cyg Simple
On 2/8/2017 5:42 PM, Thomas Wolff wrote: > Hi Andrey, > > Am 08.02.2017 um 11:54 schrieb Andrey Repin: >> Greetings, Thomas Wolff! >> >>> Am 07.02.2017 um 16:30 schrieb Andrey Repin: Greetings, Roger Qiu! > I've found that `cygpath --windows '../` will give back an absolute >

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-08 Thread Roger Qiu
Hi Andrey, That was probably true in the past, but no longer! I just tested this: `mklink /D testlink "..\All Users"` in cmd and then I went to Cygwin ZSH, and ran `ll`. This showed me: `testlink -> '../All Users'/`. Up one directory relative links do work on Windows! This is a directory

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-08 Thread Thomas Wolff
Hi Andrey, Am 08.02.2017 um 11:54 schrieb Andrey Repin: Greetings, Thomas Wolff! 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

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-08 Thread Andrey Repin
Greetings, Thomas Wolff! > 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

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-07 Thread Brian Inglis
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

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-07 Thread Thomas Wolff
Hi Andrey, 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

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-07 Thread cyg Simple
On 2/7/2017 10:30 AM, Andrey Repin wrote: > Greetings, Roger Qiu! > >> 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. > >

Re: cygpath -w converts relative paths to absolute windows paths

2017-02-07 Thread Andrey Repin
Greetings, Roger Qiu! > 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. ".." is a special path, that can't be safely converted. In

cygpath -w converts relative paths to absolute windows paths

2017-02-06 Thread Roger Qiu
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