6
Many scripts in different languages have a #!/bin/bash
header with a path to interpreter, so they can be executed without explicit call to interpreter from command line.
But what exactly reads this line and run the interpreter, is it shell or kernel?
O.K. I think I miss understood question. – Maciek Sawicki – 2010-03-09T02:19:40.847
OK, after reading justin answerer I think my whole concept understanding was wrong – Maciek Sawicki – 2010-03-09T02:27:54.347
Now, I think It would be hard to bypass this. – Maciek Sawicki – 2010-03-09T02:28:34.923
It used to be the shell. http://www.in-ulm.de/~mascheck/various/shebang/ has lots of information and history.
– user1686 – 2010-03-09T21:25:36.120Also, it is not a very good idea to link to Android source code when referring to Linux. – user1686 – 2010-03-09T21:27:43.840
1Actually, it wasn't Android specific source code, it was the Linux kernel source code as hosted on an Android site. I didn't want to provide a URL for a tarball of the kernel that would need to be untarred to get at the file. However, linking to that site turned out to not be a very good idea for a different, reason, it no longer seems to be up... At any rate, googling Linux binfmt_script.c will find other copies for anyone interested – bdk – 2010-03-09T22:28:54.650