delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/08/07:23:45

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=vvaeLmze1F9Pt7qxeihCbpEE7Ww1Dqzw5tIBqu8zsdGJcB40ah9er
H0phN9+E66iUSje06Jf6bUPIW5HUVmvxrvUFgu8HzqCC17Tx832BMZalLsNujB8s
teH+fvm6aT0aM6Rr+MtePSCraqv4NdvguTWmA/+iCX8Ox51EVXQzX8=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=urnkIO0sq++342ZCK+9d1diF+yo=; b=qM6Tv2VlmhgjO1sSwja1D20LPsvm
qLQoAgEXpQWTIuBwolzyAxuShQwHvdn1+0c19tPXCb3BsSmlGJQVMUivbPcZXSmT
2TEHN7UZH50Ndwb/1OEEZvz0fjIELHCVOinvPun+Qn/Z92f5Sf6nCIIXufkmiAFf
bGGOvUSx0VytjUQ=
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=-94.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=
X-HELO: calimero.vinschen.de
Date: Mon, 8 Aug 2016 13:23:21 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN
Message-ID: <20160808112321.GF32150@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT 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>
MIME-Version: 1.0
In-Reply-To: <57A6ED1C.1060402@gmx.de>
User-Agent: Mutt/1.6.2 (2016-07-01)

--tmoQ0UElFV5VgXgH
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug  7 10:11, Herbert Stocker wrote:
> On 05.08.2016 17:29, Corinna Vinschen wrote:
>  If you see the
> > code required to handle .exe and .lnk extensions you don't *want*
> > PATHEXT support anymore.
> >=20
>=20
> 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.

I have some doubt here.  Cygwin always checks for "foo" first.
Only if it doesn't find "foo", it checks for "foo.exe", then
for "foo.lnk" and last, for backward compat, for "foo.exe.lnk".

In the POSIX realm, "foo" =3D=3D "foo.exe" =3D=3D "foo.lnk".  The search it=
self
is indiscriminately, because Cygwin can't know if you're looking for
"foo" or "foo.exe" or a symlink "foo" using the .lnk suffix.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--tmoQ0UElFV5VgXgH
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXqGupAAoJEPU2Bp2uRE+golcP/j82HcBhPoiqm1nWPO4cn1qJ
pGFdiwSo8w3QHBR7Pu3trvgxMV4x2f8pD39diJjjQfrRQpNtNeg0bCqqw8V+MYVI
uyKRvT18h0k/YeqSrlWw83a6CDRutlvWETcpv1NGUS1DKVg7gh0LqIkQxtCygM7I
MsolGc4WxQK+YRB3oHns7GXUgW9BtSvIeDTPLbC/UP71CsycJPnAAVosschjAXqj
GB1sp5Tn1Mt5Cxow7pmJqrVG+dKQQEkOKPH5jOiUTDtsTpCvIVsIDe0M+W2cPq/D
lkLYrbSl4+ECkfu6tnhyxc6cqxC0LjMTDhCn7ok+pX5RxOBuEphu5KqF2AQWS4Uu
YGiB21dSkVFk0vtJW1fHnHyHwBgE04yHMd3K2ELaDAoxKjVqyYTYRNqqtRFRQCC1
TIC9j0Bgh55Fzma2v0mPF4/sJPhRZ/4/1AdNADoQMt8j6xkp/lPNNUe87dNlvbik
9nMNuR295kI3KZ2UeAlwJEfWqFaNQ+OwkLeVdPO8vZAY2XHlPn4d67sQiwFsNi+L
gv+/DmRDIFgkW7b1+aIns0RLqk1HzLgw+kmkyoK2Qo04r49vfSq2Eo3Z/TURGjPL
bvlCh+JAu9BBKQ+fZsjnseGCoxk0RtFdKSrZrrwdWNPiKk94WNyqOj9DfU82VMs9
g2cq/UIS7RpKew0lb8Ss
=g5ng
-----END PGP SIGNATURE-----

--tmoQ0UElFV5VgXgH--

- Raw text -


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