delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/12/16:53:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=kmoLqjms3lAnvRh4
UgnW772glrEqZRETQKXDA99Blywp5EoKSpzyt76OMOT1J6I/jh4i/Z92xvQKO4yv
4GE3XOSAeacgEikosNI4tiU4OCSFHIUujQq+pgF+0r5OOkXRiT4Pyr7Fcq8+38WT
SN/eq1u+Y1/agYB7iaJsirOlcBE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=/43VDFm83pi6ghYEfkWDuT
fiddI=; b=ejrUSa4govULmJxwwRG3RoO3t+AfMozjA88l5q1Qy4wj5CRLk+0yCs
wVxlt87S0h3B43jgBZe4fHP9zjfxQ7EdG2ddLas71Ei8qZb+01vesyt/nwMnzpXj
O4cf1UApI/38KL+vPi2RtKl/UeHxBXbbncQfxSnHeXPtEsxnj+FwI=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:493DBEC, H*i:sk:493DBEC, H*f:sk:493DBEC, anderson
X-HELO: mail-wm0-f48.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=gYI+gNaY+tKP9mCgoTY3C5W6xpoIg+r3huQPACC1I70=; b=Lqt9/ygL8FAQ1zNVAmmUSL83RD2T9kdvZRGNTAemYjqdYw+6dA4AUTsNC4Jj6uwamS 1CRPFfKN2cKxcVLwXiAgJJ9aQBoKLg6vjaEPDpBIOSc6a60k6RJ9V5P6aEcfzkjgGQCz gjOCOnZXm/vKJ3FBtIBZJAzdUhLGHEXyEgvrSFQUb2O+CJ1Tj0ErFNlZf2NW0n/9HrK6 N6K9uyJ/MRzYIMu0g8O8XI0KdO4dAggSMMsoPjkF1PLtetHgZ7UxqsFYwaorPZ8dW8FD TS92HHPJjmTW5WtlgUXTUPFwcyUBTTCIpH253Wl72OyjbLdJSPqEyktKy1sDTpGwcsZZ EgDg==
X-Gm-Message-State: AE9vXwMWysvuvhrGp0DNDDr94InwFJZGaUY/ujathFrwJNfxdfhrsQa5D8jOB0o9TUk7aA==
X-Received: by 10.28.183.135 with SMTP id h129mr1866710wmf.2.1473713595917; Mon, 12 Sep 2016 13:53:15 -0700 (PDT)
Subject: Re: unzip, find broken by auto handling of .exe file extension
To: cygwin AT cygwin DOT com
References: <5D13B45DBC02439BB6983CB46A306103 AT skywavemobile DOT com> <0D835E9B9CD07F40A48423F80D3B5A704BB9586B AT USA7109MB022 DOT na DOT xerox DOT net> <493DBECE9DB54588A55BDB6921F73079 AT skywavemobile DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <c1c88c4e-bdb5-b750-7ae3-fdd565a70c2e@gmail.com>
Date: Mon, 12 Sep 2016 22:53:11 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <493DBECE9DB54588A55BDB6921F73079@skywavemobile.com>
X-IsSubscribed: yes

On 12/09/2016 21:12, Stephen Anderson wrote:
> Thanks Ken, good observation.
>
>    -----Original Message-----
>> From: Nellis, Kenneth
>> From: Stephen Anderson >
>> > See also:
>> >
>> > http://stackoverflow.com/questions/32467871/unzip-gives-checkdir-error-
>> > directory-exists-but-is-not-a-directory#32468314
>> >
>> > The fact that 7z handles this and unzip does not indicates that the
>> > problem is fixable..
>
>> FWIW, it seems that the same issue is present with tar:
>> <Ken demonstrates broken tar handling>
>
> This means that you can't reliably extract from a tar or zip archive in
> cygwin.
> The windoze equivalents do not have this problem.
> It looks to me like the approach of equating filenames 'foo' and
> 'foo.exe' is dangerous at the stat(2) level - apparently windoze
> accomplishes the same trick in a much less destructive way.
>
> sja
>

This characteristics is needed as windows for historical reason
requested  ".exe" extension for all executable files, while
Unix have not such restriction.

So "cat.exe" is recognized by cygwin also as "cat".
Without this feature all scripts taken by traditional Unix's will
be broken and cygwin will be unusable.

Try this experiment on Linux:

touch foo
mkdir foo

does it work ?

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

- Raw text -


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