From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15088 invoked by alias); 9 Jul 2012 12:36:05 -0000 Received: (qmail 14987 invoked by uid 22791); 9 Jul 2012 12:36:04 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-gh0-f171.google.com (HELO mail-gh0-f171.google.com) (209.85.160.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Jul 2012 12:35:48 +0000 Received: by ghy10 with SMTP id 10so10160314ghy.2 for ; Mon, 09 Jul 2012 05:35:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.9.2 with SMTP id v2mr65286038paa.65.1341837347502; Mon, 09 Jul 2012 05:35:47 -0700 (PDT) Received: by 10.66.82.6 with HTTP; Mon, 9 Jul 2012 05:35:47 -0700 (PDT) In-Reply-To: References: <4FF9ED18.4080006@gmail.com> Date: Mon, 09 Jul 2012 12:36:00 -0000 Message-ID: Subject: Re: Inconsistence on file operation when the name already exists with exe extension From: Earnie Boyd To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 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/msg00115.txt.bz2 On Sun, Jul 8, 2012 at 4:37 PM, Aaron Schneider wrote: > > > > -- This way works to have the two files simultaneously --: > touch file > touch file.exe > > -- This way doesn't --: > touch file.exe > touch file Add a period character to the file name without extension. Cygwin will consider file.exe to be the same as file but file. is not the same. > > -- This works again and is similar to 1st --: > touch file.exe && bzip2 file.exe > touch file > bzip2 -d file.exe.bz2 > ---- > How can this be? Since file.exe is specific it isn't the same as file as Cygwin sees them. However, the file without the extension will mask file.exe so that file.exe will not be executed by Cygwin unless you specify the full file name. So in essence file is a pseudo symbolic link to file.exe; you cannot overwrite the pseudo symbolic link. -- Earnie -- https://sites.google.com/site/earnieboyd -- 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