Default App for Typeless Files
Apple has hardcoded the Finder to open files without extension in Terminal when they are executable and otherwise TextEdit.
Starting with Snow Leopard you can however use Michel Fortin’s Magic Launch ($14) to alter the behavior. It can also be configured to open the same file type with different applications based on location, content, or similar.