delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/08/10:01:04

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=sqqhtri
fzSshv+UMV3cXd4FugqZ29vv0dVa7NoWmR7G+uADYa0KZR/gflVXYwA+zVCR0+8b
BZLGwE5Qa5MQBRLHMayGPqhJ6Nv4JshG+XzbYLXZdDv4uiu5egNL3aQkQFciAGF+
AtJu5i7/YaBHyQW7/1j7t+9EalZRuh6SlmIw=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=ydq/dA/6+uQk1
UEbAROQW1ECUcM=; b=bpWrRWIGABaWp34pYmN3SMeNOBZgBqKnm166DvWvbwEP/
ZUsUUcDvnhBjBgPjGJS1MVlU2h9YRT2POraVKJN6GAluAoUIb5oYzw9PSFFx9Hrq
w3AMM8mGbBUVmrxMXcOB0ls7xnlLvbef5i5I6u9Fm8pOm6s2DoqU+xcjIjC1lU=
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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Were, H*i:sk:EGf-Gu3, H*i:pv0567V8, H*f:pv0567V8
X-HELO: mail-wm0-f50.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=2FvFWyY60JHiZo31Celq7qIBDCUIrAuCeUwiIx8FtY4=; b=StHnydPwNlbKcqPiwlx+NInkGyrqrJkRbC9fSoP3WIVlHpPW+ximKGF4frHiqCPe7Y lqXyZDhinyd1M/GvXoJ/EVoLhrV6lIvWqTAw55OW/qMFSyoU0oEhUpowi4hY5cVG8/RA Dd8ddsQo8X6maEfnxXffso09d57m9SWU3QR3BVqznYKyG6ZJr7ieKS51WN8O5KTTnOqR tAwpNrx8L5ghc5bfnr45mwuIck5Bs8IVVb/xtr3zF7Ozl42J/2lDWSWX/hSxvEjhRW5V qT/ocrH/60Y5eZROoNaBD9Yrk151FqMybYCurUn0N+e9dFmR6/gsIzYuTmYiRI9Y+iCO gg6w==
X-Gm-Message-State: AEkoouuxjOJg0Iqvq/v6QLULR41QUWI5a6R6omDloiDV5N4omWbfMRCFGPiJ832xeShsjcuBRVyvQRE90wb7/Q==
X-Received: by 10.25.17.70 with SMTP id g67mr32095550lfi.145.1470664815789; Mon, 08 Aug 2016 07:00:15 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CACoZoo1Qc59ybMzmaWpqMYgyzgjA4vdA=pv0567V8=EGf-Gu3g@mail.gmail.com>
References: <001001d1edf1$a4e1ae90$eea50bb0$@rogers.com> <1C0AE95E-0118-4353-AA77-4D41F1AE9AE1 AT solidrocksystems DOT com> <001a01d1eea9$f7949a90$e6bdcfb0$@rogers.com> <76ec05e9-140a-19cb-942b-698582c3d024 AT gmail DOT com> <001f01d1ef2c$f04af9e0$d0e0eda0$@rogers.com> <20160805152951 DOT GO25811 AT calimero DOT vinschen DOT de> <57A6ED1C DOT 1060402 AT gmx DOT de> <CACoZoo1Qc59ybMzmaWpqMYgyzgjA4vdA=pv0567V8=EGf-Gu3g AT mail DOT gmail DOT com>
From: Erik Soderquist <ErikSoderquist AT gmail DOT com>
Date: Mon, 8 Aug 2016 10:00:14 -0400
Message-ID: <CACoZoo3RWuH0q3anVA5VADo6oQjSQDu2BLOfzFK7yCb8FTgbgA@mail.gmail.com>
Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Mon, Aug 8, 2016 at 9:52 AM, Erik Soderquist wrote:
> On Sun, Aug 7, 2016 at 4:11 AM, Herbert Stocker wrote:
>>>
>>> code required to handle .exe and .lnk extensions you don't *want*
>>> PATHEXT support anymore.
>>>
>>
>> Moreso, this code has recently broken my C++ code in Cygwin.
>> It tried to see if a directory  /dir/subdir/something  existed,
>> and Cygwin said yes because it found a /dir/subdir/something.exe .
>> So my program failed.
>
> Were you testing for the existence of a *directory* (
> /dir/subdir/something/. ) or for anything named *something* in
> /dir/subdir/ ?
>
> And what call were you using?  It was my understanding that the foo ==
> foo.exe == foo.lnk == foo.exe.lnk was only applied when attempting to
> execute something...  (is my understanding wrong?)



I'm wrong, the following test case demontrates that clearly.

$ rm -f /tmp/foo*

$ if [ -e /tmp/foo ] ; then echo yes ; else echo no ; fi
no

$ touch /tmp/foo.exe

$ if [ -e /tmp/foo ] ; then echo yes ; else echo no ; fi
yes

$



-- Erik

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