14 Nov
2012
14 Nov
'12
6:57 p.m.
On Thu, Nov 15, 2012 at 11:25:09AM +1100, Steven D'Aprano
Shebang lines aren't interpreted by Python, but by the shell.
To be precise, it isn't the shell either, but the program loader, I think. But whatever it is, it isn't Python.
By the OS kernel -- it looks into the header to find out if the file to be exec'd is ELF or DWARF or a script -- and then it invokes an appropriate loader. Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.