Now what!?

Patrick Mullen saluk64007 at gmail.com
Sat May 10 19:12:20 EDT 2008


On Sat, May 10, 2008 at 3:57 PM, Grant Edwards <grante at visi.com> wrote:

> On a Linux system (and I presume on other Unixes), the kernel
> itself (if built with the proper options) knows know how start
> a "script" file that starts with the characters "#!".  When the
> kernel is told to execute a file whose first two bytes are "#!"
> (0x32,0x21), it knows to read the newline terminated path of an
> executable starting at the byte following the "!" (the third
> byte in the file).  The kernel then executes that file,
> appending the name of the original "script" file to the argv
> list.


Wow, thanks for the history lesson.  I was under the impression that this
was a bash thing, I had no idea it went as deep as the kernel!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080510/5d88032a/attachment-0001.html>


More information about the Python-list mailing list