> This will optimize for the common case, where I'm assuming that ELF
> binaries are most common, A.out binaries are next most common, and JAVA
> and shell script executables are least common.
I strongly suspect shell scripts are more common than Java executables
on most systems; I'd suggest that the order should instead be Java,
scripts, a.out, ELF if you're going to reorder them (taking the
reversal into effect).
-- Aaron M. Ucko (email@example.com) | For Geek Code, PGP public key, and other info, finger firstname.lastname@example.org. | "Kids! Bringing about Armageddon can be dangerous. Do not attempt it in your home." -- T. Pratchett & N. Gaiman, _Good Omens_