FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

LinkBack Thread Tools
Old 09-15-2010, 12:46 PM
Default Prefix/Cygwin: Cygwins .exe magic lacking in directory listings


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

It should not find:


Thanks for help.


Thread Tools

All times are GMT. The time now is 03:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org