www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/06/09:29:59

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 6 Sep 2010 15:29:43 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: .exe magic reloaded
Message-ID: <20100906132943.GC14327@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTikj2JyMfy-eXk2fOBzcNAWAzoKYb7s_q20hP0d7 AT mail DOT gmail DOT com> <20100906090517 DOT GA13174 AT calimero DOT vinschen DOT de> <AANLkTi=RVdbjKMjqNjw-vte+9YVbd3OXW1Mwmrw=mCJh AT mail DOT gmail DOT com> <20100906101206 DOT GA14327 AT calimero DOT vinschen DOT de> <AANLkTikcW1aKLTejm8KrVYNMg6m6BbC7sYoMMS0dRvi+@mail.gmail.com> <20100906124915 DOT GA15977 AT calimero DOT vinschen DOT de> <AANLkTinWsDBm-V-jp7tqiQbidJa7ULGo-yhNytgA8eKn AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTinWsDBm-V-jp7tqiQbidJa7ULGo-yhNytgA8eKn@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019