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 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: <20100906090517 DOT GA13174 AT calimero DOT vinschen DOT de> <20100906101206 DOT GA14327 AT calimero DOT vinschen DOT de> <20100906124915 DOT GA15977 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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