delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/01/04/16:32:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,TW_VZ,TW_XV
X-Spam-Check-By: sourceware.org
X-MDAV-Processed: mail1.multiplay.co.uk, Tue, 04 Jan 2011 21:31:23 +0000
X-Spam-Processed: mail1.multiplay.co.uk, Tue, 04 Jan 2011 21:31:23 +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: <70DEE9F255D04E3AA0E20C6330068D8D@multiplay.co.uk>
From: "Steven Hartland" <killing AT multiplay DOT co DOT uk>
To: "Eric Blake" <eblake AT redhat DOT com>
Cc: "David Mastronarde" <mast AT Colorado DOT EDU>, <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> <BEB277425D394AA2A892D7728F7DBCE7 AT multiplay DOT co DOT uk> <4D237AA3 DOT 7030807 AT redhat DOT com>
Subject: Re: Cygwin-1.7.7: mv appends .exe to directory if matching .exe exists
Date: Tue, 4 Jan 2011 21:31:28 -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: "Eric Blake" <eblake AT redhat DOT com>
On 01/04/2011 12:01 PM, Steven Hartland wrote:
> 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?
> 
> With the Unix look and feel, do you type 'ls file' or 'ls.exe file'?
> There would be a LOT of upset users if we didn't do at least some magic
> for .exe.  It's an unfortunate problem of running on Windows, while
> still providing apps that can be invoked from non-cygwin processes (if
> we wanted, we could name cygwin binaries with no extension, just as in
> Unix, but then native windows apps couldn't easily run them).

As acknowledged that's one of required special cases, but when I
expand an archive with two files on Unix I end up with two files
and not one as in the following on cygwin:-
tar -xvzf cygwin-test.tar.gz 
w/
w/ls.exe
w/ls
[root AT blade01]/tmp:
[root AT blade01]/tmp: ls -l w
total 0
-rw-r--r--+ 1 root None 0 2011-01-04 20:42 ls

So not only did I loose a file I lost the windows one, not exactly
desired behavour.

What's even more confusing for the user is that its order dependent
so if the tar extracts w/ls followed by w/ls.exe instead of w/ls.exe 
followed by w/ls you do get both files.

This always used to work just fine its only been broken in 1.7.

When I raised this when we first identified the problem we where
basically told that wasnt a valid use of cygwin so would not be
fixed, so I expect this directory problem which stems from the
same behavour will be the same as well :(

With something like cygwin there are always going to be querks and
gotyas but some of the recent "fixes" seem to taking a step backwards
breaking otherwise fine uses of this most valuable tool.

If anyone's interested in revisting this issue you'll find it under
the subject: "tar deletes .exe files on extraction" in the archives.

    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