HN2new | past | comments | ask | show | jobs | submitlogin
The '#' magic - details about the shebang mechanism on various Unix flavours (in-ulm.de)
2 points by r11t on Oct 8, 2009 | hide | past | favorite | 1 comment


It's surprising how few people realize that the shebang is implemented by the kernel, NOT by the shell. The shell ignores it -- hence the leading hash comment character.

I actually had a support engineer at Opsware argue with me about this, even after I sent him snippets of the Linux and Solaris kernel source :)




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

Search: