Sunday, 9 March 2014

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

In message <20140308191427.6AAA21FDBE@orac.inputplus.co.uk>
Ralph Corderoy <ralph@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@aaug.net

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment