delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/26/13:56:14

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=gTuO+TJ4ZRCPur9e
iDqzYJECgFAMrngl24ajXy6EED/1w4hf4HcPm1lwEfyIAeUF8HJYLCxFxJCQD2NV
SwQj9qysey3TuIH3HjBykiTDUo68AtGtOLkJxxjIWNjyIfaQbwOeWGtV/N9WMfru
YIyg5PIv/SR7Y2m/7si6yhpCK1o=
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=6igL6JbE5JbX7XbVyuy88Q
PNeZM=; b=oCii3cMksl1unCSI8OAlNm5Mtt6dz3jeeSgigUeOqbLErSK49hGWgY
WjpY/OzcVleX1Dc4yOBhnEkSXLUOLPSkU6L3QWFiOvnQyzSdJlNmrZ1dzZ/R1mvj
ufJY+R5eUU3YFoVsfewjdr3aBJ1FAlCIeoV2eLaRbt9aNJe0dR5kk=
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=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=dangers
X-HELO: mail-it0-f52.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=gRbrFtZuIKHOp1RF7ImDnQZqQBaxLrgmT+Ao7Y3o1xE=; b=midj/oyKWkxT9D1ABgzbtuUfS+Wvri4mc9/ePyIaPUaXpI3BT+3SvH//BgVSpuCJR/ ZCR1Fpdcyz8zULhig4vPhy00VC2XnTSkk6CQGRPxVHUAM8rNoja5aGkLMD6F69DW0Bc+ 9zuo7Z8preYgb/Tdn3AGJc5pUQ5atZIZCYDxdYrQK7BdckClWSa4GbBWY/TePBOv+BEc PLLQm7A1FALVqmMtBx/JuvmUmC4pw38etzUpuj9tXWsaH1bYRKE7t/xb/mOQFXyT6DCi QHfbvIIqw/h9N0liyJGOxJ7dyhQEd8G8MoIdKPc4t0oEuP11M3HHgrBx3ACw010S5aLi UxOQ==
X-Gm-Message-State: AE9vXwO8R3gjhltY0HDcJEUVu79EzMOeCncLQoIzccjp78+FTtyqFgjTv9EA/r3mBtQkgw==
X-Received: by 10.107.20.73 with SMTP id 70mr5439519iou.15.1472234155690; Fri, 26 Aug 2016 10:55:55 -0700 (PDT)
Subject: Re: cygpath -w and .exe magic
To: cygwin AT cygwin DOT com
References: <d5d997ff-898e-85e2-40ac-56335b3001f6 AT gmail DOT com> <0D835E9B9CD07F40A48423F80D3B5A704BB926D2 AT USA7109MB022 DOT na DOT xerox DOT net>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <e2f60b0b-61e6-6cd4-35bd-ac534d0a256c@gmail.com>
Date: Fri, 26 Aug 2016 13:56:02 -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: <0D835E9B9CD07F40A48423F80D3B5A704BB926D2@USA7109MB022.na.xerox.net>
X-IsSubscribed: yes

On 8/26/2016 10:58 AM, Nellis, Kenneth wrote:
> $ cmd /c DIR $(cygpath -w hello)

But
$ cmd /c $(cygpath -w hello)
will execute hello.exe

The fact that you get file not found error tells me that cmd is doing
what it does.  The purpose of the .exe magic is for executing the file
from the Cygwin shell.  My opinion is that we shouldn't rely on the .exe
magic; there are hidden dangers and some use those dangers to a benefit.

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

- Raw text -


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