From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80606 invoked by alias); 13 Sep 2016 05:36:58 -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 80585 invoked by uid 89); 13 Sep 2016 05:36:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=predict, Hx-languages-length:1412, H*f:sk:F4E41EB, H*MI:sk:F4E41EB X-HELO: mail-wm0-f49.google.com Received: from mail-wm0-f49.google.com (HELO mail-wm0-f49.google.com) (74.125.82.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Sep 2016 05:36:56 +0000 Received: by mail-wm0-f49.google.com with SMTP id b187so167875987wme.1 for ; Mon, 12 Sep 2016 22:36:55 -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=ngcAuRq0nmb7JHyLbyptcalN9bcm12DAl2UFQdBEn0s=; b=DKgJPpCHgzEO4CBHATqttkezT4JjXOrT4CH75P9/aEaIGpSCqCVWj5WsMOQjTANWPC MRhlccoTbtBy5KwPn+VMvWWPvA91Z0iMNn2R6Zm8N47A1JPvyybAOX7Jjt/Mx5zjr/hg B88FjWSw70aVGYvOU1gggL33lMdSRcswAmpGuQqx+S/UjBBozRbfLjfhyBBg08GFj6Hf hktypghKnCofnIDJetsGKXq/UvRWjHo7bWl4NgbI1x0whKEQPmNbc/owqqBvYv3DkT63 7zMKqBrpx1Ailpy1hhk4mDk4Wf96CgrQSyQxaTbhWAeZ8hXbBd3WCNBIX9Q4kl+8a1vL XrXA== X-Gm-Message-State: AE9vXwP9Gxy4wj/4ZK4q7Bp+SHhPnBC0mdprFT5tHIRA+Wnxoq9DQJRo2M9gPFInl/3ynw== X-Received: by 10.28.189.135 with SMTP id n129mr9509803wmf.71.1473745013492; Mon, 12 Sep 2016 22:36:53 -0700 (PDT) Received: from [192.168.2.109] (pD9E60E09.dip0.t-ipconnect.de. [217.230.14.9]) by smtp.googlemail.com with ESMTPSA id xy4sm21098230wjc.2.2016.09.12.22.36.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Sep 2016 22:36:52 -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: <6834a8ba-8dc9-28f2-38b7-08fef186edb7@gmail.com> Date: Tue, 13 Sep 2016 08:00: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: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00194.txt.bz2 On 13/09/2016 01:30, Stephen Anderson wrote: > >> >> 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 ? > > This is not relevant, there is no foo, there is only foo.exe. foo.exe is also foo for cygwin . It seems you have problem to understand it > > In the case of windows _command_ processing, certain extensions are searched for automatically without creating an equivalency in file names. This means that for the same directory and filename hierarchy, windows and linux archive processing work, cygwin uniquely fails. Not a desirable outcome. > > IMHO the only time cygwin should be looking for .exe (or .cmd, .bat etc if desired), is when no match is found on loading a _command_, possibly only from a shell. Feel free to provide a patch to solve it, but I suspect your solution will be worst then current implementation. There is no way to predict if the search for a file will be used to run it afterwards, so breaking functional scripts or programs. > sja 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