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=rCd96Wch/IB4lsIs
	RagvjFJp0qQsnjehJoYhScp+bnkCTKHSH5eM/SMOp+t0JDRpnBSMfMhsH81SGrqf
	BpDWS3/FrLETOucros8VqbrPTctS3BI0SAgV1LJ42P3lY1/VVGUE9vYeucN7hpuH
	XzBWvXrStNtSqQ9uqYFQ0EieEQg=
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=eYC4uLH/sB79lhEn6y5L0S
	JI1o4=; b=yakKR3tZWE9PhY9PP8AvYXMCJXnI+2QDQ/ECPfyPNf7cebWTb+7p6o
	kF8z5EgUwzd4P71N0LVXoVVam7WSZBAKwXBfmetfMCE0o2hJyOYzfLQxGg+6lujA
	bs/b0MHR4m9CABF/mkjo09MqW43zHcNOlsMnEN9RNqSI2kCWjAjKg=
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.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:8dc8498, H*i:sk:8dc8498, H*f:sk:8dc8498
X-HELO: mail-wm0-f41.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=qF+XnVz4qdS4fBu1O1jVYadUzJV57nbMMtlhU0AqSv0=;        b=Pq28qTGPWjdPkDCzpHC9Fl37ESu2fFkjztvfJc20Gu0dQftv6gNl8EqW4hyrWwZFrB         /k2wBE8nYna1+X+5NG07Wxg8tDFi0dFg0lZiID7UjnXyoJQIGtT62AqJFty6hv/e/Eeo         XXTHjIfJWHZ/5OQuoDBTMLjvRQ2coGIx8BYu5+STOPkZsvvAoFBOjSJwkGQpO9ve1zwD         FApm1Jq5RVk6JEZ7zV9Pw9GAamwpkXXtFdOkiqVZ1H2Co30XUQ+y9FaJdZ1bO3bzMCfr         WtsqmX86AIfRVL+De8RA+90xOcc5g31dmiOtmOlSWFBNQrdQmCKa+h2mVM7gcuIc9j+g         9J1g==
X-Gm-Message-State: AEkooutt3Cvb1jpTRKioCACBq7kL8zyJ6GWIOjxU1zib8x8xCPel23ACNu6VD2g4I+qqng==
X-Received: by 10.194.39.3 with SMTP id l3mr103155062wjk.133.1470748064636;        Tue, 09 Aug 2016 06:07:44 -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> <8dc84987-802d-30d3-3ebb-2ba25871b561@gmail.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <cef6d377-32c9-3861-5c99-88528539cc05@gmail.com>
Date: Tue, 9 Aug 2016 15:07:36 +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: <8dc84987-802d-30d3-3ebb-2ba25871b561@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 09/08/2016 14:58, cyg Simple 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.
>
> I tried "chmod +x foo.txt; ./foo.txt" but that results in Cygwin
> assuming the text file is a script and executing each line of the file.
> If PATHEXT were used only to determine that the file should be passed to
> ShellExecute instead it might be beneficial but since I can easily just
> do "cmd /c foo.txt" then probably not so much.

try "cygstart foo.txt"


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

