X-Recipient: archive-cygwin@delorie.com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+WKxmMoKrzvePkXyvnN5gI Date: Thu, 12 Jul 2012 13:09:40 -0400 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: tar won't extract all files when a file with exe extension precedes the same without extension inside the archive Message-ID: <20120712170940.GA25721@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <92B65842B4224F3FA65CE40F3608F7DF@multiplay.co.uk> <20120712010353.GB14112@ednor.casa.cgf.cx> <447894CEE2E7427F8E0AFC5A206BAD92@multiplay.co.uk> <981681190.20120712160313@mtu-net.ru> <4FFED62A.7060106@cygwin.com> <4FFEFE4B.5060107@sister-shadow.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FFEFE4B.5060107@sister-shadow.de> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com On Thu, Jul 12, 2012 at 06:41:47PM +0200, Otto Meta wrote: >> 2. Since this is a "Windows thing", is there some reason why the execution >> of "file" or "file.exe" isn't handled as a special case in the exec call >> (and all its flavors) and no place else? > >make, for example? If you have a rule that creates "foo" from foo.c, >gcc will actually create "foo.exe". The next time you run make, it >won?t see "foo" and recreate "foo.exe", even if "foo.exe" is still >up to date. > >With the special handling of .exe, when make checks for "foo", cygwin >checks "foo" first, doesn?t find anything, and then checks "foo.exe", >returning its result to make and make is happy. > >Anothen example: A script tries to execute "foo" from . , cygwin >executes "foo.exe" instead and the script thinks "foo" exists, >but a subsequent "touch foo" (or "rm foo" or whatever) fails, which >is massively inconsistent. > >I consider the current handling of .exe files quite consistent. > >Or, in other words, when forced to choose between the two pains, >I?d rather endure this. Thank you. These were some of the considerations that were made when the change was implemented. That said, however, probably tar and friends could be modified to deal with the situation of trying to create both file and file.exe. Or, maybe there's a wonderful patch for the DLL which would fix this. 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