Mail Archives: cygwin/2010/06/09/10:50:50
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=1.1 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,TBC,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
MIME-Version: | 1.0
|
Date: | Wed, 9 Jun 2010 10:50:34 -0400
|
Message-ID: | <AANLkTilQO7-n3Atv3un-1jxUID4JC0iIXts36lXh5enI@mail.gmail.com>
|
Subject: | Re: 'cp' utility bug when <dest-name>.exe file exist.
|
From: | Stephen Morton <stephen DOT c DOT morton AT gmail DOT com>
|
To: | cygwin AT cygwin DOT com
|
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
|
Eric Blake wrote:
> Alexander T wrote:
>
> > 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?=A0 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.=A0 Yet that is
> exactly the case of executable images being opened for editing.=A0 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.=A0 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.
I have to agree with Eric and Corrinna on this one, though I'll
provide a less reasoned explanation.
Cygwin is a crazy thing. Who would want to try to run unix/linux/POSIX
stuff on Windows? No really, what a foolish idea. Especially now that
linux is really good (at least for servers, and the desktop is debatable).
Why does my company use cygwin? Historical reasons and people's attachment
to the Windows desktop. We're moving as much as we can to linux now.
And looking at ways to have the Windows desktop do as little of the
work as possible and farm the real work out to linux servers.
We use a make environment that is part cygwin and part pure windows
executables (long story). And it all works in linux too. I suspect
it would break in the worst ugly ways if the .exe magic did not exist.
So if you're going to do this crazy thing, you've got to be prepared
to accommodate Windows's various quirks, one of which is this .com
.exe and .lnk business.
Steve
--
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
- Raw text -