Prefix/Cygwin: Cygwins .exe magic lacking in directory listings
Hello!
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.
The .exe magic of Cygwin is lacking in this point of directory
listings. In theory the ".exe" and ".lnk" suffixes would be removed.
It isn't done to give better information for the user. Hence scipts
making use of it need to workaround the matter. Fortunatly this cases
are rare.
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