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

