Gentoo Archives: gentoo-alt

From: Florian CROUZAT <gentoo@××××××××××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
Date: Wed, 15 Sep 2010 14:37:17
Message-Id: 0971F204-50F0-4BB8-9433-335F9895D044@floriancrouzat.net
In Reply to: [gentoo-alt] Prefix/Cygwin: Cygwins .exe magic lacking in directory listings by Al
1 On 15 sept. 2010, at 14:46, Al wrote:
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 > [...]
8 >
9 > Question: What is a clean fix to match both cases?
10 >
11 > I tried this
12 >
13 > "ls python2.?{,.exe}"
14 >
15 > but the result is:
16 >
17 > ls: cannot access python2.?: No such file or directory
18 > python2.6.exe
19
20 Works here, using bash4, of course.
21 It even works with "bash --norc" and every "shopt" off.
22 Can't see what's your issue(s) here.
23
24 Otherwise, just repeat the "?", see the second ls bellow (both work for me)
25 $ touch python2.6{,.exe,-config} ; ls python2.?{,.exe} ; ls python2.{?,?.exe} ; ls python2.6*
26
27 -----
28 Florian.
29 / For security reasons, all text in this mail
30 is double-rot13 encrypted. /

Replies