Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-22 Thread Daniel Barclay

Andrey Repin wrote:

Greetings, Csaba Raduly!


...

The API can handle / as the path separator, but cmd.exe can't.


You're seriously wrong...


How?  (Which part is wrong?)

The Start menu's Run... command accepts forward slashes, and cmd.exe
parses unquoted forward slashes as parameter delimiters.

Are you just alluding to _quoted_ forwards slashes in cmd.exe?

Daniel


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-21 Thread Csaba Raduly
On Thu, Oct 21, 2010 at 4:46 AM, Andrey Repin  wrote:

 Not to mention, the Windows itself don't see much of a difference between /
 and \ in path. (where it see, it is a bug).

The API can handle / as the path separator, but cmd.exe can't.

-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
Life is complex, with real and imaginary parts.
Ok, it boots. Which means it must be bug-free and perfect.  -- Linus Torvalds
People disagree with me. I just ignore them. -- Linus Torvalds

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-21 Thread Andrey Repin
Greetings, Csaba Raduly!

 On Thu, Oct 21, 2010 at 4:46 AM, Andrey Repin  wrote:

 Not to mention, the Windows itself don't see much of a difference between /
 and \ in path. (where it see, it is a bug).

 The API can handle / as the path separator, but cmd.exe can't.

You're seriously wrong...


--
WBR,
 Andrey Repin (anrdae...@freemail.ru) 21.10.2010, 13:00

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Rolf Campbell

On 2010-10-19 19:17, Arseny Slobodyuk wrote:
[snip...]

a...@dstar ~
$ ln -s `which cmd.exe` cmd.exe

a...@dstar ~
$ cygcheck ./cmd.exe
  -  D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe
cygcheck: could not find './cmd.exe'


cygcheck is not a cygwin application, it's a native windows application, 
so it does not know how to resolve unix paths.



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Christopher Faylor
On Wed, Oct 20, 2010 at 07:46:05PM -0400, Rolf Campbell wrote:
On 2010-10-19 19:17, Arseny Slobodyuk wrote:
[snip...]
 a...@dstar ~
 $ ln -s `which cmd.exe` cmd.exe

 a...@dstar ~
 $ cygcheck ./cmd.exe
   -  D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe
 cygcheck: could not find './cmd.exe'

cygcheck is not a cygwin application, it's a native windows application, 
so it does not know how to resolve unix paths.

Sure it does:

   VVV
  c:\cygcheck /usr/bin/ls.exe
  C:\cygwin\bin\ls.exe
c:\cygwin\bin\cygwin1.dll
  C:\WINXP\system32\ADVAPI32.DLL
C:\WINXP\system32\KERNEL32.dll
  C:\WINXP\system32\ntdll.dll
C:\WINXP\system32\RPCRT4.dll
  C:\WINXP\system32\Secur32.dll
c:\cygwin\bin\cygintl-8.dll
  c:\cygwin\bin\cygiconv-2.dll
c:\cygwin\bin\cyggcc_s-1.dll

And also:

  bash-3.2$ cd /cygdrive/c/winxp/system32
  bash-3.2$ cygcheck ./cmd.exe
  C:\winxp\system32\cmd.exe
C:\winxp\system32\KERNEL32.dll
  C:\winxp\system32\ntdll.dll
C:\winxp\system32\msvcrt.dll
C:\winxp\system32\USER32.dll
  C:\winxp\system32\GDI32.dll

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Andrey Repin
Greetings, Christopher Faylor!

[snip...]
 a...@dstar ~
 $ ln -s `which cmd.exe` cmd.exe

 a...@dstar ~
 $ cygcheck ./cmd.exe
   -  D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe
 cygcheck: could not find './cmd.exe'

cygcheck is not a cygwin application, it's a native windows application, 
so it does not know how to resolve unix paths.

 Sure it does:

Not to mention, the Windows itself don't see much of a difference between /
and \ in path. (where it see, it is a bug).


--
WBR,
 Andrey Repin (anrdae...@freemail.ru) 21.10.2010, 6:45

Sorry for my terrible english...


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: cygcheck bug: symlinks with unix paths are wrongly resolved

2010-10-20 Thread Christopher Faylor
On Thu, Oct 21, 2010 at 06:46:16AM +0400, Andrey Repin wrote:
Greetings, Christopher Faylor!

[snip...]
 a...@dstar ~
 $ ln -s `which cmd.exe` cmd.exe

 a...@dstar ~
 $ cygcheck ./cmd.exe
   -  D:\OTHERBIN\cygwin\cygdrive\d\WINDOWS\system32\cmd.exe
 cygcheck: could not find './cmd.exe'

cygcheck is not a cygwin application, it's a native windows application, 
so it does not know how to resolve unix paths.

 Sure it does:

Not to mention, the Windows itself don't see much of a difference between /
and \ in path. (where it see, it is a bug).

I should clarify.  cygcheck does understand UNIX paths.  It does not
understand symlinks just like the OP said.

Sorry for not making that clear.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple