delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/09/08:36:15

X-Recipient: archive-cygwin AT delorie DOT com
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
MIME-Version: 1.0
In-Reply-To: <BLU152-W46426D2BDAFCE874746E3ACEEC0@phx.gbl>
References: <BLU152-W250F4120B3650DBD65E5D2CEEC0 AT phx DOT gbl> <BLU152-W26F54627DEBFF08480143BCEEC0 AT phx DOT gbl> <4FF9ED18 DOT 4080006 AT gmail DOT com> <BLU152-W46426D2BDAFCE874746E3ACEEC0 AT phx DOT gbl>
Date: Mon, 9 Jul 2012 08:35:47 -0400
Message-ID: <CA+sc5mmsZu=AGJp_S_LavnOfF=3SJRvHrDCP0vYTHgm4uScijA@mail.gmail.com>
Subject: Re: Inconsistence on file operation when the name already exists with exe extension
From: Earnie Boyd <earnie AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019