[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: problem (bug?) with svn1.4.2 on cygwin

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-02-06 12:53:28 CET

On Tuesday 06 February 2007 11:41, Ryan Schmidt wrote:
[SVN/Cygwin treating X.exe like X]
> Can another Windows+cygwin user on the list please try whether they
> experience the same problem? If so, then it sounds like we've found a
> bug. Check the issue tracker to see if it's already been reported
> (though I'm not sure what to search for...). If you can't find a bug
> like this (and someone else confirms the behavior on their system),
> then you should submit a bug report, providing a link back to this
> discussion thread:
>
> http://svn.haxx.se/users/archive-2007-02/0194.shtml

I can neither confirm nor deny the behaviour, because I didn't try to
reproduce it, but I think I can explain it. I did some attempts in
reproducing the problem and came up with the following info. All this assumes
that I have an executable called a.exe.

1. If I issue 'ls a', it displays the same output as for 'ls a.exe' but with
the filename just 'a'.
2. Other tools like 'rm' don't extend the missing extension automatically,
i.e. 'rm a' fails.
3. Programmatically, a call to 'fopen("./a", "r")' fails, while a call
to 'fopen("./a.exe", "r")' succeeds.
4. Dito, but using stat() instead of fopen(), both calls succeed, which is
probably also what lies underneath the behaviour of ls.

I guess it's a feature of Cygwin that executables are treated differently and
that it silently allows a missing extension for them so you can type 'gcc' in
the commandline instead of having to call 'gcc.exe'. I looked for similar
hacks for '.bat', '.com' and '.dll', but neither shows similar behaviour.

cheers

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 6 12:53:50 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.