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=I9yLVKf91wZ36VOm
	0At2TX9tje3l+ggrOU+Y6CAQ66kE7rRL95kSajbo9oe6pkk5PqSCnH/0xnX4Jrc3
	NbBuRyM6XP0sQ/flQ9bXnSpRJtmUjSB8dKR4JDXiwiyeplD27apSSWoxkfVQYEKJ
	Ha5sslAND/qm/S3iCgtDY8lb+qA=
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=B/yOoN6l/uucDVCc/VSyc2
	n/vRc=; b=aaiPjmYVcxOlPHjVcqtVa11kB/1pWQdZE3NxLLaIJLZ4n2tKi39IZq
	dzSIr9m8h/TixAN4LZyJqhhYabo10EzwObvlKyvKeHNcF/UNWPIZKuzkBW9JGAvZ
	uOt+zsrin3RZLk+Nr9+W/m18FthlL44MhPy0IVxvgb9Tv3pLadMsM=
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=-1.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=registry's, vbs, VBS, Likely
X-HELO: mail-wm0-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=sTG4qHnP07j0bbE0ugN9clPDr9n/mRTj77rmDJhdyEc=;        b=KhQBP0EGxNrNJTriXZwyMAnQHDTYMYg/4RY9hRgJKbm2La71nLfrQTwdb3YAk0SdXO         recC9KbDh6MK9piI7ky2eMFqk3P+/3h0GkxF6vIrr4mbi+JfhGwF5bypCNuWr2c9Q6H4         COMcXQ7QDR7ACcpQdny0x16RTxOX+jnoL08yyeACrDFANj9iSe6YIOZUz1m1yIGRs+aw         r4ST1JJnMqhN4IaxWWaha6jxi3GMzFQFZPHY1Xe+HR6+0vvyQ3K/UPD/a7oQPlun+on2         IQ59mxETKGChQFQFgypT9EyEeAxz4sTqtHrnTi0nynghLPfcGHh/09RSotlMIsXvIA2i         U4ng==
X-Gm-Message-State: AEkoousKZtFxlfCy3k4OTNLrNOcSICJZt6F41PS6RzzHNqrizusG4bPkznsT9LxfsOqA5g==
X-Received: by 10.28.113.20 with SMTP id m20mr19717201wmc.82.1470718549335;        Mon, 08 Aug 2016 21:55:49 -0700 (PDT)
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> <000301d1f1d3$5f620d70$1e262850$@rogers.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <8a5d4be4-bbf6-1d1c-c074-b6cb034c8df7@gmail.com>
Date: Tue, 9 Aug 2016 06:55:40 +0200
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: <000301d1f1d3$5f620d70$1e262850$@rogers.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 09/08/2016 02:17, Michel LaBarre wrote:
> On Aug  8 09:43, cyg Simple wrote:
>> On 8/8/2016 7:23 AM, Corinna Vinschen wrote:
>>> On Aug  7 10:11, Herbert Stocker wrote:
>>>> On 05.08.2016 17:29, Corinna Vinschen wrote:
>
> So, if we actually implement PATHEXT, its usage would be limited to
> suffixes of binary files and files starting with #!<interpreter>, or we
> would have to use a way to start an application which doesn't work well
> in a POSIX scenario, or we would have to search the registry for the
> suffix linkage.  Additionally to searching a variable number of files
> for each single file access.
> [Michel]
> [Michel] #! Is better than nothing but doing PATHEXT fully might put these considerations to rest forever.
> [Michel] Fundamentally, the means of invoking a file interpreter in Windows are determined by the registry's file associations;
> [Michel] anything else is an assumption.
> [Michel] I don't know how cygwin.dll is implemented but the only suffixes that need to be looked up are the ones in PATHEXT and that could be done once could it not?
>
> Additionally I would (again?) like to stress that PATHEXT is a feature
> of CMD, aka, the shell.  It's not a feature of the underlying libs.
> [Michel]
> [Michel] PATHEXT is supported by Powershell and VBS.  MKS's shells (ksh,sh,perl) also.
> [Michel] Likely others since it is considered consistent with Windows.
> [Michel] It likely should have been implemented at a lower level but was not.

Michel,
your quest is starting to boring me.

If you want this feature, please propose a patch to implement it.
It will be evaluated and we will consider the additional burden (aka 
delay) that it will introduce on the current usage.

For my usage of cygwin, your feature request is of no interest.
If I want to run a specific program based on extension I can do
by myself or use cygstart.

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

