delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL |
X-Spam-Check-By: | sourceware.org |
X-Spam-Processed: | mail1.multiplay.co.uk, Mon, 09 Jul 2012 17:46:27 +0100 |
X-MDRemoteIP: | 188.220.16.49 |
X-Return-Path: | prvs=15377d4663=killing AT multiplay DOT co DOT uk |
X-Envelope-From: | killing AT multiplay DOT co DOT uk |
X-MDaemon-Deliver-To: | cygwin AT cygwin DOT com |
Message-ID: | <7918C4B87447499ABCE6066BDC0B4B47@multiplay.co.uk> |
From: | "Steven Hartland" <killing AT multiplay DOT co DOT uk> |
To: | <cygwin AT cygwin DOT com> |
References: | <BLU0-SMTP193F74A0A7FC396B8160663CED30 AT phx DOT gbl> <20120709154456 DOT GA6696 AT ednor DOT casa DOT cgf DOT cx> |
Subject: | Re: Inconsistence on file operation when the name already exists with exe extension |
Date: | Mon, 9 Jul 2012 17:47:30 +0100 |
MIME-Version: | 1.0 |
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 |
----- Original Message ----- From: "Christopher Faylor" > On Mon, Jul 09, 2012 at 05:23:13PM +0200, notstop wrote: >>You must be right in some points, but that is not the exact behavior of >>windows command although you pretend it to be (the powershell has a >>different behavior). In fact, I can independently operate file while >>file.exe exists: >> >>copy file.exe file >>Now there are file and file.exe > > Nevertheless, FYI, powershell is not Cygwin and no one is saying that > the behavior you're seeing is mandated by Windows. What you are seeing > is a Cygwin accommodation for the fact that .exe is a special extension. > Cygwin is not a new project. Its handling of .exe has been hashed and > rehashed throughout the life of the project. The current behavior is > the compromise that we've settled on. This is a change which causes us pain regularly. The defaults in previous cygwin versions worked well and where predicatable from both a coding and user perspective. So we would have to agree with the author here that the current behavour should be reviewed and reverted to the much safer and more expected defaults where by only execution is a special case nothing more. > So, what you are seeing is expected. Continuing to argue without > familiarizing yourself with past discussions is not likely to expose > anything new. Take the example of a tar archive which has a windows .exe and say a Linux binary of the same name excluding the .exe. The current behaviour will have random results depending on the order of the files in the archive. So its likely that even though the archive extracted a working .exe file once the extract is actually complete the .exe will not be present. I appreciate that the idea was to make cygwin more internally consistent however surely predictable vs. random behaviour (as far as the user is concerned) is preferable is it not? Regards Steve -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |