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=nVyP4lAQauBhJ57FtSHhJWt+IQ2HRp+s7UVXdKxgFRnhjzYT+1F7I
	Fc8MOiIgVlnO6UiMzUlxblSbx3JFisSI2Q7d+D5UZaQs4zxadP5kGMyJfQikuq+v
	XmDbIotR4omSY4xjHWSAUi6W80y97mLPgsGO0cqlVCmwuuxLCcEgpo=
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=FoCuFqFb4uuWoiRy/xNKBXtaLy0=; b=tg0ZWplPTHYRhWMj97Fac4Dj+/mL
	gCASLnQuumdd7khQJj8LbJYIp4yyOSq0hBJIEdqgkk6mHs4a/Ml/evl+8TKEOg5y
	JW6zCzLZ3S7xymSPkoddZf2jqTKpoge4Oiiavdkhu6H0ezv+YyUn8Og4k2Q3iVLT
	99qzRfVUcLiefGA=
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-Spam-SWARE-Status: No, score=-101.8 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=
X-HELO: mout.kundenserver.de
Date: Wed, 20 Mar 2019 10:24:21 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Corner-case bug in .exe handling?
Message-ID: <20190320092421.GR3908@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <5400e6ecebaa25efa46f0011be3fc58b58c4a69c.camel@cygwin.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="2NLGdgz3UMHa/lqP"
Content-Disposition: inline
In-Reply-To: <5400e6ecebaa25efa46f0011be3fc58b58c4a69c.camel@cygwin.com>
User-Agent: Mutt/1.11.3 (2019-02-01)

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

On Mar 19 18:02, Yaakov Selkowitz wrote:
> Just came across this with 3.0.4 on both Win7 and Win10 1804:
>=20
> $ ls -1 /usr/bin/python2.7
> /usr/bin/python2.7
> $ ls -1 /usr/bin/python[2-9].[0-9]
> /usr/bin/python3.5
> /usr/bin/python3.6
> /usr/bin/python3.7
> /usr/bin/python3.8
>=20
> python2.7 is the actual .exe where python3.* are symlinks, but
> shouldn't 2.7 still be included in the latter?

No, even if that looks weird.  But think about what happens.  ls calls
readddir.  readdir returns "python2.7.exe".  The matching is not done by
Cygwin, but by the shell.  And python2.7.exe simply doesn't match
"python[2-9].[0-9]".

Nothing Cygwin can do about, unless we suppress the .exe suffix in
readdir/realpath/readlink output just like we do with the ".lnk" suffix
for the old winsymlink symlink style.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--2NLGdgz3UMHa/lqP
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlySBsUACgkQ9TYGna5E
T6CLog/+N1xv/bXOGTqWQvQCMcQjJGPyvOKu9QZZkNdEuPCTBu6qBNRvl26PCDqj
PQlH00scy1P4BjMCZxm5iVWUqRuOURKGERrzkVI2roGOm66nPsmxNfokTCSrqhne
4lcnFu307W7aXBs3qthtZiOko6DAeDs55pLtNZf+6/yao/aTylsBCTa7td4A9KNI
/HkMaZPhtFWy2VKhJ4iU8zCuUcSU4VyBYecJDO3Zit0nd1RNNmOeEtqrup1XAOUR
kaJHDuU5tqFT+VjDNWHRdaWTZtBui0/PK/U5j/6KjGSf5G8HhOOz0UqFCOkwphcw
4cOsqlLo/Omw7IfLhBsRRte4or3e8H70ZFfONvbwPdiAxpL3Jt31kQIvxDyrpGe4
H79y+1ELVSHNZGXS8sf3fABqHTuYbg415Fi5+cG6etNJHvn1VRgSmrF9pkaMRfOt
g9bFEmay5k7gkG5wpCEk6cRqc1RUBrCtF8scLZhIWTC+c0x2c3fTU0AWuuP/MYmg
d+t2gvObBt5DMTTzVN2rayhDmApLk2wdH9vHI+FcMHa63Btv3ZLFN2neTkTmk1uy
IRE+FqQh5rZd/YxvROl5VGj+rSFssR3Wj2/q56uiD3gScdr0eADLEKdzxzgbbnPH
V1sW++hwX8fOKxddx17bBeedx/OxkBcrQZuHJrOCQ2w9Sm2UPlo=
=2w++
-----END PGP SIGNATURE-----

--2NLGdgz3UMHa/lqP--
