1 |
On 09/15/2010 04:37 PM, Florian CROUZAT wrote: |
2 |
> |
3 |
> On 15 sept. 2010, at 14:46, Al wrote: |
4 |
> |
5 |
>> I needed to fix a shell expression in python.eselect to match |
6 |
>> "python2.6.exe". Currently it is "ls python2.?" and would match |
7 |
>> "python2.6" but not the Cygwin binary with the .exe suffix. |
8 |
>> |
9 |
>> [...] |
10 |
>> |
11 |
>> Question: What is a clean fix to match both cases? |
12 |
>> |
13 |
>> I tried this |
14 |
>> |
15 |
>> "ls python2.?{,.exe}" |
16 |
>> |
17 |
>> but the result is: |
18 |
>> |
19 |
>> ls: cannot access python2.?: No such file or directory |
20 |
>> python2.6.exe |
21 |
> |
22 |
> Works here, using bash4, of course. |
23 |
> It even works with "bash --norc" and every "shopt" off. |
24 |
> Can't see what's your issue(s) here. |
25 |
> |
26 |
> Otherwise, just repeat the "?", see the second ls bellow (both work for me) |
27 |
> $ touch python2.6{,.exe,-config} ; ls python2.?{,.exe} ; ls python2.{?,?.exe} ; ls python2.6* |
28 |
|
29 |
you're creating a python-2.6 file, which does _not_ exist in the cygwin |
30 |
build... thats the actual problem... you'll have to try with only the |
31 |
.exe and -config file, but without the file without extension for the |
32 |
cygwin case. the same expression has to work for the _other_ case, where |
33 |
there is a python-2.6 without .exe and the -config file... |
34 |
|
35 |
wow... anybody understands this? :) slightly messy thought-flow... |
36 |
|
37 |
markus |
38 |
|
39 |
> |
40 |
> ----- |
41 |
> Florian. |
42 |
> / For security reasons, all text in this mail |
43 |
> is double-rot13 encrypted. / |
44 |
> |
45 |
> |