Re: error in "cygpath" behavior

2018-09-01 Thread Thomas Wolff
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

Re: error in "cygpath" behavior

2018-08-31 Thread Brian Inglis
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

Re: error in "cygpath" behavior

2018-08-31 Thread Achim Gratz
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

Re: error in "cygpath" behavior

2018-08-31 Thread Steven Penny
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

Re: error in "cygpath" behavior

2018-08-31 Thread 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 always points to the physical directory that c

Re: error in "cygpath" behavior

2018-08-31 Thread cyg Simple
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 . >>.

Re: error in "cygpath" behavior

2018-08-31 Thread Corinna Vinschen
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 . >

error in "cygpath" behavior

2018-08-30 Thread Steven Penny
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\ -