|
|
|
|
|
by jmholla
440 days ago
|
|
I'll quote the line more explicitly from this article: > If nobody on the list accepts it, then as a last resort the kernel will attempt to treat it as a shell script without a shebang line. They said that the kernel is responsible for invoking the shell. I honestly think this was just a brain fart and the author meant to put shell and not kernel. With both words flying around in your head, it's an easy mistake to make. But, the again, the article goes on to talk about how it decides to even try that last step: > Interesting side note: The kernel decides whether or not to try to parse a file as a shell script by whether or not it contains a line break in the first few hundred bytes — specifically if it contains a line break before the first zero byte. Thus a data file that just happens to have a "\n" near the top can produce some odd-looking error messages if you try to execute it. So I don't know. |
|
I guess my next step is to look at the kernel source itself. I'll probably end up doing that in a bit.