delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/09/09:21:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C0F9535.7010902@redhat.com>
Date: Wed, 09 Jun 2010 07:20:53 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 'cp' utility bug when <dest-name>.exe file exist.
References: <OFF145E76E DOT EB43EC60-ON8525773C DOT 005639A6-8525773C DOT 005650D6 AT lnotes-gw DOT ent DOT nwie DOT net> <AANLkTil0pNuO4a9n2Ln5H3Q0cJRdQER7NlgSTg2a9EN2 AT mail DOT gmail DOT com> <OFCB72527D DOT F8E42EE2-ON8525773C DOT 0058E3E2-8525773C DOT 0059F451 AT lnotes-gw DOT ent DOT nwie DOT net> <1276042636 DOT 1651 DOT 9 DOT camel AT erebor> <AANLkTil6fa2-stL9f3hd-Dg-X6FjzVKLeG56lPoI7OYp AT mail DOT gmail DOT com> <20100609044034 DOT GB9305 AT ednor DOT casa DOT cgf DOT cx> <AANLkTikJ9U3U49HlT9Ldm6aueX3z22gN_6L95P-E2Pwz AT mail DOT gmail DOT com> <AANLkTinrgelZ5PcMhWjzehe8sa-cjkGoiFI8WpLGNh84 AT mail DOT gmail DOT com> <AANLkTimh8Kzu14RAhlzYl6FBl6nOdXNY2JMIug7b_v-X AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTimh8Kzu14RAhlzYl6FBl6nOdXNY2JMIug7b_v-X@mail.gmail.com>
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

--------------enig1654F57440A8653B8712FBC4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 06/09/2010 07:14 AM, Alexander T wrote:

[please don't top-post]

> Why not just do the exe magic for executing the files only? When
> opening, stating, copying, moving etc, you could leave it out. This
> seems the most reasonable compromise to me, but there could of course
> be cases which I am overseeing, but I wouldn't expect any script to
> rely on exe magic when opening a file for editing.

Have you ever encountered a makefile that doesn't consistently use
$(EXEEXT) everywhere?  Too many people just expect 'gcc -o foo ...' to
produce foo, then 'strip foo' to work, without realizing that on cygwin,
gcc created 'foo.exe' and strip _has_ to have .exe magic.  Yet that is
exactly the case of executable images being opened for editing.  So the
question then is whether the magic should be centralized in cygwin1.dll
(preferable) or repeatedly patched into every program that needs it (a
maintenance nightmare).

Perhaps it does make sense to drop .exe suffixes; teaching gcc that -o
foo means we really want a suffix-less file, and teaching users that
they want to modify PATHEXE to include . if they are working from the
windows side of things.  But it won't be an overnight switch, and will
come with its share of complaints on the list.

Meanwhile, we can't get away from .lnk magic, but that produces orders
of magnitude less complaints on the list, so I'm not as worried about it.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig1654F57440A8653B8712FBC4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMD5U6AAoJEKeha0olJ0NqbowIAJ3GXkkoT6QfZqk57uOBHFSg
iOuV7k3hhxi8SRFuRWYJkMNEYpKf8yAya7EtBOyhMo2gQdEBgZE5akgqXArUbsar
d987f9/z+cb/SVTXC09+sGMhkFZwERGIc6Yy075kLmswhm7sfeBKdjeICRfRYOc5
3L4zlArd+7G092nMOJME73ZbzJrPgL4zuvefZYBwWsp8F/MBic1LRbWyHd7oyLjr
4X/MjDmSfv3mNIm2QFH+2lYu9XdGpDUvUsTkuAn1e1yQw3FBDRAFS3jbDMZBXMn8
zoSrnSQiK53uiAnfZmRG8BMsYRpAlXBRd8/6bRAVm0+aVoFHwjLVssaniXIdKs0=
=KYpf
-----END PGP SIGNATURE-----

--------------enig1654F57440A8653B8712FBC4--

- Raw text -


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