Daniel Gibson Wrote:

> >> The only way _anything_ is executable in *nix is if its executable flag is 
> >> set. 
> >> Extensions mean _nothing_ as far as executability goes.
> > 
> > As you can see, there's an ambiguity here: script is not executed directly 
> > in the same sense as machine code, so it may be not called an execution and 
> > not require executable flag to be interpreted. Actual application beign 
> > executed is interpreter. So the question is whether a script have to be 
> > flagged executable in order to run interpreter on it.
> 
> On *nix: Yes. Scripts have to be flagged executable. (Of course you can start 
> a
> non-executable script with e.g. bash foo.sh)

I suppose, the flag on a script is checked "manually" by the shell, and on a 
binary - by the OS.

Reply via email to