delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/14/11:37:06

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: 'rm' immune to .exe magic?
Date: Fri, 14 Sep 2007 15:36:08 +0000 (UTC)
Lines: 32
Message-ID: <loom.20070914T170724-714@post.gmane.org>
References: <024f01c7f6df$b4e47740$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
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

Dave Korn <dave.korn <at> artimi.com> writes:

> 
> 
>   Just checking: is rm supposed to ignore exe magic, then?

For now, yes.  I tried it once, according to /usr/share/doc/Cygwin/coreutils-
6.9.README:

----------  coreutils-5.3.0-5 -- 2005-04-14 ---------
Revert rm(1) implicit .exe handling, it broke libtool and was wrong on
dangling links.

----------  coreutils-5.3.0-4 -- 2005-04-05 ---------
Improve cp(1), install(1), and mv(1) on more implicit .exe corner
cases.  Update rm(1) to also have implicit .exe handling.  Patch
dircolors(1) to support cygwin terminals by default.


On the other hand, libtool has now been fixed to avoid foo and foo.exe both in 
the same directory (at least upstream, although I'm not sure the cygwin distro 
has picked this up yet - Chuck?).  So maybe it's time for me to resurrect 
the .exe magic patch back into rm?

In the meantime, packages that use autoconf should be patched to properly use 
$(EXEEXT), because it DOES matter for cleanup on cygwin.  And even if I 
add .exe magic to rm, properly using $(EXEEXT) will still matter when you are 
porting to a non-cygwin platform with .exe, such as BeOS or mingw.

-- 
Eric Blake



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