This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin-1.7: mv appends .exe extension to .bat and .com files


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]