delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/08/19:20:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_DNSBL_BUMP,KHOP_THREADED,MIME_BASE64_BLANKS,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Date: Mon, 9 Jul 2012 03:17:14 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <12410514575.20120709031714@mtu-net.ru>
To: Aaron Schneider <notstop AT users DOT sourceforge DOT net>, cygwin AT cygwin DOT com
Subject: Re: Inconsistence on file operation when the name already exists with exe extension
In-Reply-To: <BLU152-W26F54627DEBFF08480143BCEEC0@phx.gbl>
References: <BLU152-W250F4120B3650DBD65E5D2CEEC0 AT phx DOT gbl> <BLU152-W26F54627DEBFF08480143BCEEC0 AT phx DOT gbl>
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-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
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id q68NKO7Y022229

Greetings, Aaron Schneider!


> --On an empty dir--:

> touch file.exe

> touch file.img

> touch file doesn't create the corresponding file.

> --Then--

> touch helpp

> cp helpp file

> cp: can't create regular file «file»: File exists

> On rm file it removes the file.exe instead of saying file not found.

> Is this behavior intended?

Yes. For more information, read about Cygwin .exe files handling magic.

> This is not unix like, the filename should be preserved as is

Complain to Microsoft...


--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 09.07.2012, <03:15>

Sorry for my terrible english...

- Raw text -


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