3 ms·
> I believe that scripts without a shebang line cannot be executed by execve. This was once true on old systems, but current ones (including Linux) have native
by JoshTriplett 6y ago
> I believe that scripts without a shebang line cannot be executed by execve.
This was once true on old systems, but current ones (including Linux) have native support for scripts starting with #!. See fs/binfmt_script.c in Linux, which has existed for several decades.
- modeless 6y agoI'm talking about scripts without the shebang (#!) line.
- JoshTriplett 6y agoI'm sorry, I completely misread that. There were once systems where scripts with the shebang line would get run by the shell rather than the kernel, hence my confusion.
- FeepingCreature 6y agoYes, that is the aforementioned shebang line.