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=t4/xCSJeTGKgI9Kc
	c4olFJkBd/vFwQkC8vcgsFXDLEDciNecoCK/12BXs3O4u3rfEDXymyGITIdpUxtG
	oEsEvcdhzJcLn2986qmIZyu6uFCUKx2/fLERmgStftjBnHRvShiNK86V+h3+pjQb
	YJUCX5EBuHvI2pcMbgj3LrKgwEI=
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=xukfCXMcJRz0T/tafou+fe
	BTgeE=; b=adaOLisJfUm2VpMU++TNTlFiXKDiO3ritSLH9F3PM6qeUnr7UhKaDq
	KnURjwAGPRKPBetAF/NFbAyE6gWHARCFMF0NyLuYSCgkdmUKVb8tazkQvxxuVoka
	ebJdtHGtyiMW1/lVzYgfazJ6q8Nlr7zSazFwNGepgexqQWg76G+PU=
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.5 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:0D835E9, Hx-languages-length:1000, food, dear
X-HELO: mail-it0-f51.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=bA2QyR90SkoRNECRW0D8FoujR67HpERaH1rjdb5htMc=;        b=bcXqdk6QfLgRreLMuYPBGM2OnHXg3H/rVAdBrVg7zthaO6EC49q4HpnBUENUAhgwbC         +MRIeL57bmWQUue+j5f+YBLhObj59mJVtR+nxPVFrgZz8RnbrBdFFCd7bDJH8x4cX1eZ         YcUKQk6mIhax99BLRJuzC4qQiDEL7jTOfQTVcwwRFjWudgoe8xX3weTyE8KMQ7NrEXeD         D3jX7yehAw8G/poPkfD/ZEPXF+rGo5I5wTwY0yujutYCZnpGwN7VS2/WuFX8UirKf6C4         ee1FctRD8telp8sNQOc7uuTl+xN/KIBGPo89J42RmYyE6ouCWjVKrnKHQK83OXURe0+Z         I7yA==
X-Gm-Message-State: AE9vXwO/RoV7/eTYta1lJsgE3D/Q7ltxk0cJUZM41Iki8Jk+1qj3yZycl/cc0+t/pYW2rw==
X-Received: by 10.107.3.70 with SMTP id 67mr4807580iod.97.1472221819481;        Fri, 26 Aug 2016 07:30:19 -0700 (PDT)
Subject: Re: cygpath -w and .exe magic
To: cygwin@cygwin.com
References: <0D835E9B9CD07F40A48423F80D3B5A704BB92639@USA7109MB022.na.xerox.net>
From: cyg Simple <cygsimple@gmail.com>
Message-ID: <b6cc9dc3-a839-9e4e-1377-bdc82371a101@gmail.com>
Date: Fri, 26 Aug 2016 10:30:25 -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: <0D835E9B9CD07F40A48423F80D3B5A704BB92639@USA7109MB022.na.xerox.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On 8/26/2016 9:08 AM, Nellis, Kenneth wrote:
> Dear Cygwin Community,
> 
> $ ls -l
> total 60
> -rwxr-x--- 1 knellis Domain Users 60927 Aug 26 08:57 hello.exe
> $ ./hello
> Hello, world!
> $ cygpath -w hello
> hello
> $
> 
> The purpose of cygpath -w, it seems to me, is to provide
> to Windows a valid path given a Posix path.
> 
> Given executable file foo.exe, which Cygwin allows to be
> referenced simply as foo, should not: cygpath -w foo
> return: foo.exe
> instead of: foo
> ?
> 
> Passing foo to a Windows application will certainly 
> be a problem. I recognize this might be considered a
> change of scope for the program, but I think the tool
> should do the .exe magic rather than pass off this
> responsibility to the user. Food for thought.

You say certainly but provide no real proof other than your assumptions.
 Cygpath has been performing for many years without anyone complaining
about the missing .exe.  I don't think we need to change it.

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

