From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1283 invoked by alias); 8 Jul 2012 20:27:24 -0000 Received: (qmail 1273 invoked by uid 22791); 8 Jul 2012 20:27:24 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-bk0-f43.google.com (HELO mail-bk0-f43.google.com) (209.85.214.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 Jul 2012 20:27:06 +0000 Received: by bkty15 with SMTP id y15so4617005bkt.2 for ; Sun, 08 Jul 2012 13:27:05 -0700 (PDT) Received: by 10.204.151.211 with SMTP id d19mr18880712bkw.63.1341779225317; Sun, 08 Jul 2012 13:27:05 -0700 (PDT) Received: from [192.168.2.193] (93-33-100-55.ip44.fastwebnet.it. [93.33.100.55]) by mx.google.com with ESMTPS id e20sm25056077bkv.10.2012.07.08.13.27.04 (version=SSLv3 cipher=OTHER); Sun, 08 Jul 2012 13:27:04 -0700 (PDT) Message-ID: <4FF9ED18.4080006@gmail.com> Date: Sun, 08 Jul 2012 20:27:00 -0000 From: marco atzeri 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 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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/msg00109.txt.bz2 On 7/8/2012 10:19 PM, Aaron Schneider wrote: > > --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? This is not unix like, the filename should be preserved as is > In a normal unix, programs do not need the exe suffix so on cygwin "file.exe" can be referred as "file". "file" is the unix way "file.exe" is the windows way Try: $ cd /bin $ ls -l bash $ ls -l bash* as such you can not have a second file or directory with the same name. Regards Marco -- 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