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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=qiikpUpwv1R22s9/
	mNWZ6bUiqoR0sLzHSEbhQyuqQlNrpItnSTVQtJ09ZEV2eCbj4GYBENWzvJ+lgm5E
	4Q2rV0xe5kBLexyRJyN39pV9tnAAiI+uPk5oqjnKc9BjNmcVG4CgdH0cTlXd4J7p
	b+uV0qt0vK7Y2u2Rf8iT2cjWxww=
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=SDJaNswHwFX/I3fiwtnzqp
	N0rwE=; b=w5mlHngVGx2TQRezUAZjUnlwehSwhDkZBc16RduOUY/qWX+f5bnTtj
	BobbsRZci5ZOufV3tu4pxS2vUgWxPC81i57pk4WFAMRQY8g8rV8nfBxsJgezQphJ
	iWKKtnzW4TpdT8kBS1MakFUd4GlOiHzsfarXKIeBYZIDVZpoSQ2HQ=
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=0.5 required=5.0 tests=BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*M:online, schrieb, H*MI:sk:3104971, UD:js
X-HELO: mailout03.t-online.de
Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN
To: cygwin@cygwin.com
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>
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker@t-online.de>
Message-ID: <3bed7d1a-1747-5dd9-6dea-594588006000@t-online.de>
Date: Wed, 10 Aug 2016 20:59:45 +0200
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: <310497164.20160810040104@yandex.ru>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Am 10.08.2016 um 03:01 schrieb Andrey Repin:

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

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

	foo.bar

execute the first reachable one in this list


	foo.bar
	foo.bar.com
	foo.bar.exe
	foo.bar.bat
	foo.bar.cmd
	foo.bar.vbs
	foo.bar.vbe
	foo.bar.js
	...

in the current directory (unconditionally!), or the %PATH%.

So the only thing one has to do in order not to need PATHEXT support is 
to call all files by their full names, which a careful script programmer 
should always be doing anyway.  So PATHEXT gains you nothing in 
well-written scripts.

That leaves the interactive command line as a possible use case to 
benefit from PATHEXT.  I say Bash <Tab> completion runs circles around 
that any day.

--
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

