delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/12/19:44:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Tue, 12 Apr 2005 19:44:32 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin coreutils-5.3.0-4 rm change breaks Libtool
Message-ID: <20050412234432.GA17857@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <041220052251 DOT 26916 DOT 425C50E800071C000000692422007507840A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <041220052251.26916.425C50E800071C000000692422007507840A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.5.8i

On Tue, Apr 12, 2005 at 10:51:20PM +0000, Eric Blake wrote:
>To some degree, the problem isn't even coreutils fault - cygwin itself
>is where it was decided that stat(2) succeeds for either "foo" or
>"foo.exe" when only "foo.exe" exists, but that unlink(2) fails unless
>it is spelled "foo.exe".  The implicit .exe magic I added in rm is
>simply recognizing that if stat succeeded but unlink failed, that
>unlink should be tried a second time with the correct extension.

I'm not sure I understand this.

If cygwin were made to not treat .exe specially, that would mean that,
presumably, either you'd remove all of your patches from coreutils and
make people use .exe specifically, or you would work around the lack of
.exe by adding it on your own.

If you wanted to just make people always have to specify .exe then you
probably should have just introduced a simple wrapper around stat which
defeated cygwin's attempt to detect .exe's.

cgf

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