Gentoo Archives: gentoo-alt

From: Al <oss.elmar@××××××××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
Date: Wed, 15 Sep 2010 12:46:28
Message-Id: AANLkTi=_rHgQyYFRAQV8OERjBZLiCvZqNgMk_ZGwfEx4@mail.gmail.com
1 Hello!
2
3 I needed to fix a shell expression in python.eselect to match
4 "python2.6.exe". Currently it is "ls python2.?" and would match
5 "python2.6" but not the Cygwin binary with the .exe suffix.
6
7 The .exe magic of Cygwin is lacking in this point of directory
8 listings. In theory the ".exe" and ".lnk" suffixes would be removed.
9 It isn't done to give better information for the user. Hence scipts
10 making use of it need to workaround the matter. Fortunatly this cases
11 are rare.
12
13 Question: What is a clean fix to match both cases?
14
15 I tried this
16
17 "ls python2.?{,.exe}"
18
19 but the result is:
20
21 ls: cannot access python2.?: No such file or directory
22 python2.6.exe
23
24 It should not find:
25
26 python2.6-config
27
28 Thanks for help.
29
30 Al

Replies

Subject Author
Re: [gentoo-alt] Prefix/Cygwin: Cygwins .exe magic lacking in directory listings Florian CROUZAT <gentoo@××××××××××××××.net>