How does the #! shebang work?
Recommended reading: The UNIX FAQ: Why do some scripts start with #! … ? The #! magic, details about the shebang/hash-bang mechanism on various Unix flavours Wikipedia: Shebang The unix kernel’s program loader is responsible for doing this. When exec() is called, it asks the kernel to load the program from the file at its … Read more