[gccsdk] GCC 4.7.4 Rel 1 Dev 2014-01-08: Text file execute permission bit
bavison at riscosopen.org
Sun Mar 9 11:47:50 PDT 2014
On Sun, 09 Mar 2014 14:06:32 -0000, John Tytgat <John.Tytgat at aaug.net> wrote:
> I thought about that too (i.e. check on Alias$@RunType_XYZ), but then
> we have text files with execute permission bit set too. I'm not sure
> whether it going to be worthwhile.
As you say, most data filetypes has RunType variables assigned, so that's
no use to distinguish executables from data files.
Here's an alternative suggestion: make it depend (only) upon whether the
filetype is "UNIX Ex" (&FE6). At least then if some ported software
running on RISC OS is manipulating a collection of files, and where the
resulting files will later be interpreted on Unix, where the setting of
the execute bit matters, then there's a chance that things will work out
More information about the gcc