X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: PATHEXT is fundamental to Windows and Should be recognised by CYGWIN
Message-ID: <20160808112321.GF32150@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <001001d1edf1$a4e1ae90$eea50bb0$@rogers.com> <1C0AE95E-0118-4353-AA77-4D41F1AE9AE1@solidrocksystems.com> <001a01d1eea9$f7949a90$e6bdcfb0$@rogers.com> <76ec05e9-140a-19cb-942b-698582c3d024@gmail.com> <001f01d1ef2c$f04af9e0$d0e0eda0$@rogers.com> <20160805152951.GO25811@calimero.vinschen.de> <57A6ED1C.1060402@gmx.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="tmoQ0UElFV5VgXgH"
Content-Disposition: inline
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--
