Am 31.08.2018 um 22:05 schrieb Eric Blake:
On 08/31/2018 02:48 PM, cyg Simple wrote:
Don't forget the possibility that '..' points to a symlink which Windows
will not understand.
$ mkdir -p /foo/baz
$ ln -s /foo /bar
$ cd /bar/baz
$ cygpath -w ..
Except .. never points to a symlink. It alw
On 2018-08-31 16:34, Steven Penny wrote:
> On Fri, 31 Aug 2018 10:57:34, Corinna Vinschen wrote:
>> Long-standing behaviour. ".." in Cygwin and ".." in Windows can totally
>> disagree. The path is always convert to absolute at this point in favor
>> of correct output. There's also the additional
Steven Penny writes:
> I am not understanding - it appears that "dot-dot" (..) is well defined by
> POSIX:
[…]
> so it would appears that ".." would be an acceptable return value in any case.
Except that you've asked for a Windows path, not POSIX, and you have no
idea what Windows' idea of the CWD
On Fri, 31 Aug 2018 10:57:34, Corinna Vinschen wrote:
Long-standing behaviour. ".." in Cygwin and ".." in Windows can totally
disagree. The path is always convert to absolute at this point in favor
of correct output. There's also the additional restriction (though
not in this case) that relati
On 08/31/2018 02:48 PM, cyg Simple wrote:
Don't forget the possibility that '..' points to a symlink which Windows
will not understand.
$ mkdir -p /foo/baz
$ ln -s /foo /bar
$ cd /bar/baz
$ cygpath -w ..
Except .. never points to a symlink. It always points to the physical
directory that c
On 8/31/2018 4:57 AM, Corinna Vinschen wrote:
> On Aug 30 21:37, Steven Penny wrote:
>> It is my understanding that given relative input, "cygpath" shall produce
>> relative output unless given "-a" option. However I noticed a discrepancy.
>> These
>> are all correct:
>>
>>$ cygpath .
>>.
On Aug 30 21:37, Steven Penny wrote:
> It is my understanding that given relative input, "cygpath" shall produce
> relative output unless given "-a" option. However I noticed a discrepancy.
> These
> are all correct:
>
>$ cygpath .
>.
>
>$ cygpath ..
>..
>
>$ cygpath -w .
>
It is my understanding that given relative input, "cygpath" shall produce
relative output unless given "-a" option. However I noticed a discrepancy. These
are all correct:
$ cygpath .
.
$ cygpath ..
..
$ cygpath -w .
.
This is not:
$ cygpath -w ..
C:\cygwin64\home\
-
8 matches
Mail list logo