delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/26/10:58:58

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=vjt5D2f+rQDIprvlAfQeCEXcPeFmM
SCp1Ezt3W4H50cRpvfaqfcnLYKGKG7cUZCiJ3zG2qPLv7tUgJXOqwI/rhch4JAve
IpCTi+CX6NUXaerRPboHmQN0iR8M0JqySUPG7ANdx9Aoq3rIVStjk+gXEeWEBMFF
9E0WFuJ0lCwLiw=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=dvacGQvETfX8qf02AjZLymODkco=; b=Ytr
ClZoAlpI98fjmd/RS5SpFVGMgag/DVy86jwwbUR7AVhewgL0xvt600NQOZ2yB4z1
E1cYcyehf/RsZBkX/9mrsPQ0slVDqFG0Pfs9P9v2zJO7nMfx+/K5f0GZjg2Dq7IR
F/gcF5CxQYKAVs1OenVhP28C/FoZzBKqsWkgOWJQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-0.1 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS autolearn=no version=3.3.2 spammy=Volume, HX-Envelope-From:sk:Kenneth, contrived, Dir
X-HELO: USA7109MR010.ACS-INC.COM
From: "Nellis, Kenneth" <Kenneth DOT Nellis AT xerox DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: cygpath -w and .exe magic
Date: Fri, 26 Aug 2016 14:58:33 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BB926D2@USA7109MB022.na.xerox.net>
References: <d5d997ff-898e-85e2-40ac-56335b3001f6 AT gmail DOT com>
In-Reply-To: <d5d997ff-898e-85e2-40ac-56335b3001f6@gmail.com>
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id u7QEwpvX016072

From: cyg Simple
> On 8/26/2016 10:35 AM, Nellis, Kenneth wrote:
> > From: Herbert Stocker
> >> On 26.08.2016 15:19, Lee Dilkie wrote:
> >>> and break everyone who has existing code to take care of this?
> >>
> >> If it is done, it should be done as an additional option, i'd say.
> >
> > Of course a new option, duh! ☺
> > But my feeble brain is failing to imagine a case where this
> > would break anything, unless the user solution would turn
> > a returned foo.exe into foo.exe.exe, which seems doubtful.
> >
> 
> We still don't have a valid case of failure without the .exe.  Until
> that happens this is a no-go change.

Here is a contrived example:

$ cmd /c DIR $(cygpath -w hello.exe)
 Volume in drive C has no label.
 Volume Serial Number is 6A15-FFB2

 Directory of C:\cygwin\home\knellis\dev\c\hello

08/26/2016  10:47            60,927 hello.exe
               1 File(s)         60,927 bytes
               0 Dir(s)  218,673,360,896 bytes free
$ cmd /c DIR $(cygpath -w hello)
 Volume in drive C has no label.
 Volume Serial Number is 6A15-FFB2

 Directory of C:\cygwin\home\knellis\dev\c\hello

File Not Found
$

As I originally said, "Food for thought."
I thought it might be worth a discussion.
Appreciate the comments.

--Ken Nellis

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019