Mail Archives: djgpp-workers/2000/03/10/13:40:40
Eli Zaretskii writes:
>
> > In is_exec.c, there is a list of extensions (listed in the code snippet
> > below) that automatically designate executable files. This list doesn't
> > include .sh, .ksh, .pl, and .sed. Was this done on purpose or should they
> > indeed be added to the list?
>
> This list is there to avoid the costly operation of opening the file
> and reading its first two bytes; files with other extensions will be
> read and their executability determined by the magic signature. So
> the list only includes extensions you see most frequently on a typical
> DOS/Windows system.
>
> If somebody thinks that a few more extensions should be added, I don't
> mind, but please remember the downside: the risk to identify
> non-executable files as being executable, just because some Windows
> application decided to usurp one of these extensions.
In particular, I've seen .pl used for Prolog source files. Not on
Windows, admittedly, but...
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -