From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27110 invoked by alias); 9 Jul 2012 15:23:30 -0000 Received: (qmail 27100 invoked by uid 22791); 9 Jul 2012 15:23:28 -0000 X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from blu0-omc1-s8.blu0.hotmail.com (HELO blu0-omc1-s8.blu0.hotmail.com) (65.55.116.19) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Jul 2012 15:23:15 +0000 Received: from BLU0-SMTP193 ([65.55.116.8]) by blu0-omc1-s8.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 Jul 2012 08:23:14 -0700 Message-ID: Received: from [127.0.0.1] ([77.27.22.4]) by BLU0-SMTP193.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 Jul 2012 08:23:13 -0700 Date: Mon, 09 Jul 2012 15:23:00 -0000 From: notstop Reply-To: notstop@users.sourceforge.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Inconsistence on file operation when the name already exists with exe extension Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2012-07/txt/msg00120.txt.bz2 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 -- windows cmd.exe behaves like that: del file: removes file only regardless of file.exe existence del file.exe: removes file.exe only regardless of file existence -- Cygwin behaves differently: rm file.exe: will remove only file.exe if exists rm file: will remove file if exists, and if not will remove file.exe Considering this, may be be an issue when untaring a tarfile whose contents will match an already existing file in the directory with the exe extension. If both thefile and thefile.exe are packed in the tar, won't be an issue since thefile is alphabetically precedent to thefile.exe so both will be untared, but is just a mere coincidence that it works. Would be an issue if where the opposite. -- 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