From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50367 invoked by alias); 12 Sep 2016 20:53:29 -0000 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 Received: (qmail 50351 invoked by uid 89); 12 Sep 2016 20:53:28 -0000 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 Received: from mail-wm0-f48.google.com (HELO mail-wm0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Sep 2016 20:53:18 +0000 Received: by mail-wm0-f48.google.com with SMTP id i130so221758wmf.0 for ; Mon, 12 Sep 2016 13:53:18 -0700 (PDT) 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) Received: from [192.168.2.109] (pD9E60E09.dip0.t-ipconnect.de. [217.230.14.9]) by smtp.googlemail.com with ESMTPSA id j1sm19584316wju.9.2016.09.12.13.53.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Sep 2016 13:53:15 -0700 (PDT) Subject: Re: unzip, find broken by auto handling of .exe file extension To: cygwin@cygwin.com References: <5D13B45DBC02439BB6983CB46A306103@skywavemobile.com> <0D835E9B9CD07F40A48423F80D3B5A704BB9586B@USA7109MB022.na.xerox.net> <493DBECE9DB54588A55BDB6921F73079@skywavemobile.com> From: Marco Atzeri Message-ID: Date: Mon, 12 Sep 2016 23:30:00 -0000 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> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00187.txt.bz2 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: >> > > 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