X-Recipient: archive-cygwin@delorie.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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=ARf3mxIMwYio6yxm
	wdGLDhjMeQcl6tCWZsEu2WHMapMGG0k3uo1R8QhOpXxpc3+QHkVvYCVaLiKNJY0v
	gTElq3FUjVDCTDXYGWRzxeCKQcuGSLPBfQh9a2e5oAA609TWVEWtwnyp/KxeqAJC
	GimwF76ti8B8/qtCNyWQWW0Sp8s=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=5W6Mf9oTKGDz0NWrhCSMb/
	SSjgE=; b=nXfjZg9qmaVg4DNpQMv6MX1uPYbcvt1B5YcYQ850dSqL1sdCSAmHag
	0t3QxADjBz8hR3NEJzp6Ea8QAIu+wI10dJx8NJx+wy/iLuBoEERLei5fvjkgSgl3
	KSyuUxBpeITqdbQ4XVPfrHoMCLANc05eR/7GdXpeG+snllLtsWPyE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, H*x:Bat!, H*UA:Bat!, terrible
X-HELO: forward11h.cmail.yandex.net
Authentication-Results: smtp1m.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Thu, 11 Aug 2016 00:05:39 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1546760683.20160811000539@yandex.ru>
To: =?windows-1252?Q?Hans-Bernhard_Br=F6ker?= <HBBroeker@t-online.de>,
        cygwin@cygwin.com
Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN
In-Reply-To: <3bed7d1a-1747-5dd9-6dea-594588006000@t-online.de>
References: <001001d1edf1$a4e1ae90$eea50bb0$@rogers.com>   <1C0AE95E-0118-4353-AA77-4D41F1AE9AE1@solidrocksystems.com>  <001a01d1eea9$f7949a90$e6bdcfb0$@rogers.com>  <76ec05e9-140a-19cb-942b-698582c3d024@gmail.com>  <001f01d1ef2c$f04af9e0$d0e0eda0$@rogers.com>  <20160805152951.GO25811@calimero.vinschen.de> <57A6ED1C.1060402@gmx.de>  <20160808112321.GF32150@calimero.vinschen.de>  <e90174df-61b4-17c8-064b-30009e6ad559@gmail.com>  <20160808143321.GS25811@calimero.vinschen.de>  <8dc84987-802d-30d3-3ebb-2ba25871b561@gmail.com>  <CACoZoo3_kBe6zWktTzydhHFzeZMr+AZe1Z2WujagTcLme_ctZg@mail.gmail.com>  <310497164.20160810040104@yandex.ru>  <3bed7d1a-1747-5dd9-6dea-594588006000@t-online.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u7ALKWRq029049

Greetings, Hans-Bernhard Bröker!

> Am 10.08.2016 um 03:01 schrieb Andrey Repin:

>> PATHEXT tells the shell to consider these file extensions executable.

Erik:
> PATHEXT is very simply a list of extensions CMD.EXE will automatically
> append to the given filename when searching the PATH for a command to
> execute.  Once a filename+extension is found, CMD.EXE still needs to
> know what to do with the given file to be able to execute it.

Hans:
> No.  That's what file associations do.  cygstart will apply those where 
> needed, so let's consider that aspect of the case closed, shall we?

> PATHEXT has just _one_ job, in those few tools that even use it: it 
> saves one the burden of referring to a file by its actual name.  It's 
> what makes a given command of just

Yes, sorry. I was slightly confused myself.
I rechecked my facts afterward, and, indeed, cmd was successful in executing a
script through file association, given the name including extension, even
though I explicitly removed the extension from PATHEXT and respawned the
shell to be absolutely sure.

The point about <Tab>'ing of course makes PATHEXT less and less appealing in
its native form.


-- 
With best regards,
Andrey Repin
Thursday, August 11, 2016 00:01:14

Sorry for my terrible english...

