This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .exe magic reloaded


On Sep  6 14:56, Al wrote:
> >
> > It's definitely a bug in perl's Configure. ÂIf the name of the symlink
> > is "foo", there's not the faintest reason to assume that "foo.exe" should
> > work at all.
> >
> >
> > Corinna
> >
> 
> Magic is when it does the right thing magically. With your approach
> you don't need any magic at all.

You don't seem to understand the magic here.  The magic is to add the
.exe suffix to a filename.  If you have a file foo.exe and call foo, you
get foo.exe.  If you have a symlink foo-sym pointing to foo, and you
call foo-sym, you also get foo.exe, since the exe magic still works
after the symlink has been evaluated.  However, if you call
foo-syml.exe, you made a mistake.  There is no file called foo-sym.exe,
which could be opened, neither is there a symlink called foo-sym.exe.
The magic is to *add* the .exe suffix automatically, not *removing* it
when you specified it wrongly.  If you think that further, you would
also expect that I can open a file foo.txt by calling `vim foo.txt.exe'.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]