[Gllug] Perl 'running' python and bash

Richard Jones rich at annexia.org
Mon May 2 07:23:15 UTC 2005


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.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list