Mac/Linux executable extension?

BlitzMax Forums/BlitzMax Programming/Mac/Linux executable extension?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Flame,
I've looked at the Filemode example and the brl.filesystem code. Max appears to ignore the 1st character (filetype) and only handle the permissions.
A 'mode & 511' value is returned.

I'm rusty at binary stuff but, can you test if this returns True if the *nix file is an executable?
Function IsUnixExe(file$)
  Return FileMode(file$) | %001001001
End Function