delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/01/04/14:02:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
X-MDAV-Processed: mail1.multiplay.co.uk, Tue, 04 Jan 2011 19:01:37 +0000
X-Spam-Processed: mail1.multiplay.co.uk, Tue, 04 Jan 2011 19:01:37 +0000
X-MDRemoteIP: 188.220.16.49
X-Return-Path: prvs=198501a29f=killing AT multiplay DOT co DOT uk
X-Envelope-From: killing AT multiplay DOT co DOT uk
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com
Message-ID: <BEB277425D394AA2A892D7728F7DBCE7@multiplay.co.uk>
From: "Steven Hartland" <killing AT multiplay DOT co DOT uk>
To: "David Mastronarde" <mast AT Colorado DOT EDU>, "Eric Blake" <eblake AT redhat DOT com>
Cc: <cygwin AT cygwin DOT com>
References: <alpine DOT LRH DOT 2 DOT 00 DOT 1101040857070 DOT 8516 AT druid DOT colorado DOT edu> <4D234B82 DOT 3000204 AT redhat DOT com> <alpine DOT LRH DOT 2 DOT 00 DOT 1101040952530 DOT 8516 AT druid DOT colorado DOT edu>
Subject: Re: Cygwin-1.7.7: mv appends .exe to directory if matching .exe exists
Date: Tue, 4 Jan 2011 19:01:40 -0000
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-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

----- Original Message ----- 
From: "David Mastronarde" <mast AT Colorado DOT EDU>

>> You CAN'T have a directory and an executable sharing the same name on
>> Linux, so why should you try the same thing on cygwin?  Given that
>> cygwin attempts to handle '.exe' as a necessary evil, and tries to
>> recognize executables when the suffix is omitted, you are basically
>> confusing cygwin by creating a directory and an executable with the same
>> name.
>>
>> That said, there's probably room for improvement for recognizing the
>> situation, and trying to be smarter when both directory and .exe
>> executable exist; and the patch may need to be in coreutils rather than
>> in cygwin1.dll (since cp is doing some extra legwork for .exe magic in
>> the first place).  Good thing I'm building coreutils 8.9 today :)
>>
>> --
> 
> In my case, I am using Winzip to make an executable Zip file that ends up 
> having the same name as the directory.  Every time I make a new version, I 
> rename the directory as indicated.  This used to work, possibly even in 
> early Cygwin 1.7
> 
> Think of this as similar to having an installer file named packagename.sh. 
> Linux wouldn't confuse the directory packagename and the executable 
> packagename.sh

I'd agree these latest "fixes" for handling .exe cause us problems constantly.
I really don't understand this obsession for all the special handling when it
used to work just fine as it was.

In our case when we have Linux and windows files in an archive with the same
name except the extension everything goes to pot, even tar fails to expand it
which used to work without a problem :(

Executable is a permission its not an extension so why treat a file with .exe
extension any different with the exception of when looking for a binary to
run, which is an understandable special case given the Windows environment.

It really feels like so called consistency is being enforced over functionality
which is sad as I always though cygwin's goal was to make Unix look and feel
under windows?

If this was truly the goal and given Unix doesn't prevent Unix two executable
binaries, one with no extension and one with an .exe extension coexisting then
why should cygwin?

    Regards
    Steve


--
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