Sunday, 9 March 2014

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

On Sun, 09 Mar 2014 14:06:32 -0000, John Tytgat <John.Tytgat@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
as intended...

Ben

_______________________________________________
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