[Gllug] Perl 'running' python and bash

Ian Norton-Badrul bredroll at darkspace.org.uk
Mon May 2 09:14:59 UTC 2005


Richard Jones wrote:
> On Sun, May 01, 2005 at 05:45:32PM +0100, Ian Norton-Badrul wrote:
> 
>>Seems a little wierd :-), but,
>>that shebang line is there for the invoking program (usually the shell)
>>to decide what to run, apache and things like that also listen here,
> 
> Not so.  #! is processed by the kernel normally (see
> fs/binfmt_script.c in the Linux source).
> 
> In this case, however, perl is doing its own #! processing as another
> poster in this thread pointed out.  It's for the benefit of people
> using substandard operating systems which don't do shebang processing,
> so they can set their SHELL to perl and get a similar effect to having
> it done in the kernel.

I stand corrected :-), I was just thinking that using perl to interpret
the #! on broken systems is fairly clever, if however the job of an
entirely different smaller tool :-)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list