X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Blake Subject: Re: 'rm' immune to .exe magic? Date: Fri, 14 Sep 2007 15:36:08 +0000 (UTC) Lines: 32 Message-ID: References: <024f01c7f6df$b4e47740$2e08a8c0 AT CAM DOT ARTIMI DOT COM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/