The loader executes the specified interpreter program, passing to it as an argument the path that was initially used when attempting to run the script, so that the program may use the file as input data.
There are shells other than bash, and a program can directly use the execve(2) syscall on a file with a shebang without having to implement any sort of special parsing.
If you click the loader ( https://en.wikipedia.org/wiki/Loader_(computing) ) link in the quote you posted (without providing a link), you will see that the program loader is the handler for the execve system call, which means it's not something implemented in application code, but rather part of the syscall logic, which most of the time is implemented in the kernel.
30
u/ericonr Nov 06 '20
It's actually the kernel :p