Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



I'm talking about scripts without the shebang (#!) line.


I'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.


Yes, that is the aforementioned shebang line.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: