On Sat, May 10, 2008 at 3:57 PM, Grant Edwards <[EMAIL PROTECTED]> 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!
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to