3 ms·
I would add that this technically is a (ba)sh script, not a Python script.
by bozoclownn 11y ago
I would add that this technically is a (ba)sh script, not a Python script.
- tangent128 11y agoOn *nix systems, the #! is parsed by the kernel as a magic number. sh/bash are not involved.
- bozoclownn 11y agoThanks, didn't know!
- stefantalpalaru 11y agoNo, you can use any program to launch executable scripts that start with #!. The kernel sees that magic number at the beginning of the file, tries to read a program path and arguments, adds the script as the last arg and executes the whole thing. The various shells are just a subset of the possible programs used.