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=Pj55lu5Iog/POLWb f7QAHJMoQayoBQ6AcUQx6nh+7gjLt1S95iUuuAQ1AhDauS2odR8iuvhWiDsdvI8U f9/34SoPxLNilb0HN/+C6JZdY2hiDhtBWZAmnEK98W+XqQOT8f5HQj4jELVHB1/t sBEhBtGFUm6Emw9ZeLUcukdAQJI= 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=qMyrdIFUdMgFOrrQUulXET wmIic=; b=jwKeUaiW+pZuBUFUnuFHckBCBDCvmxBEMYXCTinnC6aED5/EtlXS3H KaTfh5Y9vgI9nlh5QYHo84jTxhk85E6v0QL8lcKAeh4gDWd+tyHCPQm+ybXL8fLi B6W2b894daWP8j53QHUeymkl0nJ949hlm4SN9qIM0iR+Qf6W52LvA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: =?ISO-8859-1?Q?No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=contradictory, file=e2, consume, H*f:sk:3104971?= X-HELO: mail-it0-f54.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=0g3uMs7bEfJBi5ZtJILy+sZWTY4SA2VPB1OmW3EKrrA=; b=jPXrNnowWD1TFdbQchRJm0kwEpuIx1TRLf3BOk0zrpy2kHLRbnI9Xptpr3X7Tvll4y eWOcJSWkcRXhWYvQdFnxTj2Bx1lp91CzIo9Qh3p1ynJMDOtw0paemabCIC9GfrQ7YixB SPpzH9YxeFE83J4RLboTHhXzSEb3BymPae5fE1YGu3q6sTun8w8kJ6t0qyOAYB2UChNZ v2m0ykF/wvU5N8icnPjPLzZWnuD8cM8KeGn+HVZ1K7RUPElWlE8a192WuPTnohuVllfp KV1zSu8F5EiJn0Oszzy7ZtGfZMt8V5OyT2CKw7dius6DwVKOp9pZizbxUZeg04BTLTHv kp5g== X-Gm-Message-State: AEkoouu1vmT+RinvB7oa4VEphxMFAVqMG8/K/OUxZI42WOdZ2F0bvKBBJ3k9cNLICQvOtA== X-Received: by 10.36.116.131 with SMTP id o125mr3422371itc.7.1470837540752; Wed, 10 Aug 2016 06:59:00 -0700 (PDT) Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN To: cygwin AT cygwin DOT com References: <001001d1edf1$a4e1ae90$eea50bb0$@rogers.com> <1C0AE95E-0118-4353-AA77-4D41F1AE9AE1 AT solidrocksystems DOT com> <001a01d1eea9$f7949a90$e6bdcfb0$@rogers.com> <76ec05e9-140a-19cb-942b-698582c3d024 AT gmail DOT com> <001f01d1ef2c$f04af9e0$d0e0eda0$@rogers.com> <20160805152951 DOT GO25811 AT calimero DOT vinschen DOT de> <57A6ED1C DOT 1060402 AT gmx DOT de> <20160808112321 DOT GF32150 AT calimero DOT vinschen DOT de> <20160808143321 DOT GS25811 AT calimero DOT vinschen DOT de> <8dc84987-802d-30d3-3ebb-2ba25871b561 AT gmail DOT com> <310497164 DOT 20160810040104 AT yandex DOT ru> From: cyg Simple Message-ID: <0eec2610-8ed7-ac53-18bb-041a0430894e@gmail.com> Date: Wed, 10 Aug 2016 09:59:00 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 8/9/2016 9:11 PM, Warren Young wrote: > On Aug 9, 2016, at 7:01 PM, Andrey Repin wrote: >> >>> PATHEXT looks for *executable* files, not file association. I warned >>> previously in this thread about getting the two confused. >> >> Your statement is confusing. If not contradictory. >> PATHEXT tells the shell to consider these file extensions executable. >> If you create a file association for ".sh" and add ".SH" to pathext, CMD will >> happily execute it, and in the current console. > > I think he means that if PATHEXT support appears in Cygwin (whether in the DLL or just in Bash) that you would have to chmod +x any files you want it to apply to. The existence of the file’s extension in PATHEXT alone would not be enough. No, adding a .sh to PATHEXT will not execute the file. No, doing a chmod +x will not cause CMD to execute the file either even if the extension is in the PATHEXT list. You must associate the .sh to the executable to consume it and once you do that association PATHEXT is meaningless. -- cyg Simple -- 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