delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/10/09/09:18:37

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=6Uy2P1POzxYA:10 a=uyCP00vwyxwA:10 a=xe8BsctaAAAA:8 a=JU8-tUUzOtsvOxiD8p0A:9 a=McXqxXkhqSmJPzIsHJ8A:7 a=6sYoYh8AmJhtp2_GxszgnzUlwtEA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10
Message-ID: <48EE0478.4020509@byu.net>
Date: Thu, 09 Oct 2008 07:17:44 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin-1.7: mv appends .exe extension to .bat and .com files
References: <0MKr6C-1Kl4Ya1pOX-000Qp8 AT mx DOT kundenserver DOT de> <20081002090144 DOT GA23019 AT calimero DOT vinschen DOT de> <20081009100432 DOT GR9289 AT calimero DOT vinschen DOT de> <48EDFDAD DOT 9020407 AT bmts DOT com> <20081009130540 DOT GA9289 AT calimero DOT vinschen DOT de>
In-Reply-To: <20081009130540.GA9289@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

> Actually it would be possible to change the filename at copy time by
> keeping track if a write to a file is the first write and if the bytes
> to write are equivalent to a PE/COFF header.  If so, Cygwin could
> rename foo to foo.exe without bothering the application.  That's what
> U/WIN does.  I'm not yet sure if that's something we want to do, too.

Nah; that sounds like a lot of overhead.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjuBHgACgkQ84KuGfSFAYBUBQCbBKCfjUWR4jLKHw0KBsIMhoPS
2TEAn3LkkhSYybnxh2ZA2UUlgOSCJDCJ
=aebZ
-----END PGP SIGNATURE-----

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

- Raw text -


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