I have two text files with no extension and made them executable. Both are set to open with Terminal app. However one file is shown as kind "Text" and the other one as "executeable unix file".
if I display the metadata attributes with
mdls < filename >
I can see the the Content Type is different:
file 1 shows:
... kMDItemContentType = "public.unix-executable" ...
file 2 shows:
... kMDItemContentType = "com.apple.traditional-mac-plain-text" ...
How can I set the kMDItemContentType of file 2 also to "public.unix-executable"? Is there a command line to to change it?