X-Recipient: archive-cygwin AT delorie DOT 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=PJo2LuetcRZRdV/b m1N2eIqAvXBEh+sbETK8VbfFWB+gQBaZ2OzTcFbCIqMlx6HSwQnLTOkyJmifYf4/ OEHcv7i8X9NOxHDMv2JUbOkgZTNUqP4kBiFJJhy5iqCgDiMOAa/qhkzMsT3Kd5Jk IDkxHbgIcJYTVouHFeT2+xK7+rw= 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=A7tYK62igdbjj3QkD+Gg7+ /8haw=; b=vv3R4QXwQlh6hmOZgp8e7YmYT1mJPk73xKK8IoFe1I3Sq0S4jNB60S mmgP3Y2G/pEE/R8NyMD1GLaOS1F3/f83gNy4SFeGHx8uni03pEPSSbhbMTzTUbEX uS1+D03HRgx+duuCS+V3rkZwMXfWGYxIMyuspMw63XmNCwwTxJhN8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=kenneth, Kenneth, H*r:ip*0.0.0.0, H*r:0.0.0 X-HELO: bird.oak.relay.mailchannels.net X-Sender-Id: totalchoicehosting|x-authuser|lee AT dilkie DOT com X-Sender-Id: totalchoicehosting|x-authuser|lee AT dilkie DOT com X-MC-Relay: Neutral X-MailChannels-SenderId: totalchoicehosting|x-authuser|lee AT dilkie DOT com X-MailChannels-Auth-Id: totalchoicehosting X-MC-Loop-Signature: 1472217586573:2228909953 X-MC-Ingress-Time: 1472217586573 Subject: Re: cygpath -w and .exe magic To: cygwin AT cygwin DOT com References: <0D835E9B9CD07F40A48423F80D3B5A704BB92639 AT USA7109MB022 DOT na DOT xerox DOT net> From: Lee Dilkie Message-ID: Date: Fri, 26 Aug 2016 09:19:45 -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; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: lee AT dilkie DOT com 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. and break everyone who has existing code to take care of this? -- 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