On 09/15/2010 04:37 PM, Florian CROUZAT wrote:
On 15 sept. 2010, at 14:46, Al wrote:
I needed to fix a shell expression in python.eselect to match
"python2.6.exe". Currently it is "ls python2.?" and would match
"python2.6" but not the Cygwin binary with the .exe suffix.
[...]
Question: What is a clean fix to match both cases?
I tried this
"ls python2.?{,.exe}"
but the result is:
ls: cannot access python2.?: No such file or directory
python2.6.exe
Works here, using bash4, of course.
It even works with "bash --norc" and every "shopt" off.
Can't see what's your issue(s) here.
Otherwise, just repeat the "?", see the second ls bellow (both work for me)
$ touch python2.6{,.exe,-config} ; ls python2.?{,.exe} ; ls python2.{?,?.exe} ; ls python2.6*
you're creating a python-2.6 file, which does _not_ exist in the cygwin
build... thats the actual problem... you'll have to try with only the
.exe and -config file, but without the file without extension for the
cygwin case. the same expression has to work for the _other_ case, where
there is a python-2.6 without .exe and the -config file...
wow... anybody understands this?

slightly messy thought-flow...
markus
-----
Florian.
/ For security reasons, all text in this mail
is double-rot13 encrypted. /