X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <48EE097B.2010202@bmts.com>
Date: Thu, 09 Oct 2008 09:39:07 -0400
From: Ralph Hempel <rhempel@bmts.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: cygwin-1.7: mv appends .exe extension to .bat and .com files
References: <0MKr6C-1Kl4Ya1pOX-000Qp8@mx.kundenserver.de> <20081002090144.GA23019@calimero.vinschen.de> <20081009100432.GR9289@calimero.vinschen.de> <48EDFDAD.9020407@bmts.com> <20081009130540.GA9289@calimero.vinschen.de> <48EE0478.4020509@byu.net>
In-Reply-To: <48EE0478.4020509@byu.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-brucetelecom.com-MailScanner-Information: Please contact Bruce Telecom 519.368.2000 for more information
X-brucetelecom.com-MailScanner: Found to be clean
X-brucetelecom.com-MailScanner-From: rhempel@bmts.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Corinna Vinschen on 10/9/2008 7:05 AM:
>>> Install seems to strip the .exe extension in the process of copying
>>> files to the destination directory.
>> Install *copies* files.  The resulting filename is not under control of
>> Cygwin but exclusively under control of the copying application.  This
>> is different from rename and link which are OS functions and thus
>> implemented in Cygwin.
> 
> What this really means is that I need to add another cygwin-specific patch
> in coreutils to make install keep track of .exe magic - if the user
> specified a file without the suffix, but the real file has the suffix,
> then the target should be created with the suffix (no different than some
> of the .exe magic already in mv and cp).

Exactly. What happens now is that the .exe extension is simply stripped
off during the copy.

As I noted before, the Cygwin User's Guide currently implies that
install will fail in this scenario.

The exe magic seems to be a rich source of headaches. I'm glad somebody
smarter than me is looking after it :-)

Ralph

PS. Sorry for hijacking (not too far) this thread.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

