Re:Shebang Quine
by kovek on Friday May 20, 2016 @10:52AM
(#11738248)
More precisely:
- The shell finds opens up the file you want to execute
- It gets the first line of the file
- It figures out what program to execute
- It calls fork()
- In the new process, it executes the program (using exec()) and passes the file as the input to the program.