1 |
>> "ls python2.?{,.exe}" |
2 |
>> |
3 |
>> but the result is: |
4 |
>> |
5 |
>> ls: cannot access python2.?: No such file or directory |
6 |
>> python2.6.exe |
7 |
> |
8 |
> Works here, using bash4, of course. |
9 |
|
10 |
Also here bash4. |
11 |
|
12 |
> It even works with "bash --norc" and every "shopt" off. |
13 |
> Can't see what's your issue(s) here. |
14 |
|
15 |
Hmm, it,s {,.exe} which tests two variants: |
16 |
|
17 |
python2.x and python2.x.exe |
18 |
|
19 |
The first doesn't exist, hence the error. The second is found as python2.6.exe |
20 |
|
21 |
What I really want to code is: |
22 |
|
23 |
Find python2.? with or without the .exe suffix! |
24 |
|
25 |
> Otherwise, just repeat the "?", see the second ls bellow (both work for me) |
26 |
> $ touch python2.6{,.exe,-config} ; ls python2.?{,.exe} ; ls python2.{?,?.exe} ; ls python2.6* |
27 |
> |
28 |
|
29 |
Gonna try. Thanks. |
30 |
|
31 |
Al |