From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10721 invoked by alias); 28 Jun 2010 23:26:15 -0000 Received: (qmail 10714 invoked by uid 22791); 28 Jun 2010 23:26:15 -0000 X-Spam-Check-By: sourceware.org Received: from pool-173-76-48-4.bstnma.east.verizon.net (HELO cgf.cx) (173.76.48.4) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 28 Jun 2010 23:26:10 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 2BC6813C061 for ; Mon, 28 Jun 2010 19:26:09 -0400 (EDT) Received: by ednor.cgf.cx (Postfix, from userid 201) id 02AC42B352; Mon, 28 Jun 2010 19:26:08 -0400 (EDT) Date: Mon, 28 Jun 2010 23:26:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Regression in .exe extension handling Message-ID: <20100628232608.GA20304@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1277766496.7412.18.camel@YAAKOV04> <4C292D35.6000005@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C292D35.6000005@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-06/txt/msg00702.txt.bz2 On Mon, Jun 28, 2010 at 05:16:05PM -0600, Eric Blake wrote: >On 06/28/2010 05:08 PM, Yaakov (Cygwin/X) wrote: >> It is not unusual for mono packages to create a wrapper script (to be >> installed in PATH) in the same directory as an assembly (which has .exe >> suffix and is installed out of PATH), which uncovered a regression using >> the 20100622 snapshot: >> >> echo script > foo >> echo executable > foo.exe >> mkdir bar >> install foo bar/foo > >The problem is here - should install be open()ing "foo" (the script) or >"foo.exe" (the executable) as the source file for copying into bar/foo? > Since it is never a good idea to have both an .exe and a script of the >same name in the same directory, is this really a regression, or just >bad behavior on mono's part? Remember, libtool was recently changed to >avoid exactly this ambiguity. Or should I be trying to patch coreutils >(and/or someone patch cygwin1.dll) to try harder to open the script >instead of the .exe when the suffix-less file conflicts with the .exe? Is the dll "misbehaving" here or the install program? cgf -- 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