News for hackers. Stuff that matters.
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.
Re:Shebang Quine by Tyr42 on Friday May 20, 2016 @10:56AM (#11738304)
The shell is not involved in looking at the first line of the program, that's what happens in `exec`.