in my previous post i said i have a char *filename and want to determine whether the file (given it exists) is executable (either a binary or a #! file)
my solution is now to search the output of
for the substring "executable". i wonder if this is generally a good idea? will localized versions of the "file" program output "executable" too, or anything in a different language?