[gccsdk] GCC 4.7.4 Rel 1 Dev 2014-01-08: Text file execute permission bit

John Tytgat John.Tytgat at aaug.net
Sun Mar 9 07:06:32 PDT 2014


In message <20140308191427.6AAA21FDBE at orac.inputplus.co.uk>
          Ralph Corderoy <ralph at inputplus.co.uk> wrote:

> Hi John,
> 
> > > > > I think it would be better to derive this from RISC OS filetype,
> > > > > i.e.  test on Obey, Absolute, ELF, Module, Utility (any
> > > > > others?).
> > > >
> > > > If you allowed Obey, why not BASIC?  And then, why not Lua, REXX,
> > > > Python etc - how would the code know whether to treat an arbitrary
> > > > filetype as executable?
> 
> Waht about if there's a RunType variable defined for that filetype?  My
> RISC OS memory is hazy but that might be an option.

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.

John.
-- 
John Tytgat, in his comfy chair at home
John.Tytgat at aaug.net




More information about the gcc mailing list