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

Oh this is neat. Took me a bit.

The shell treats the first line as a comment. It executes the second line, which eventually exec's the binary so the rest of the file do not matter to the shell.

And the compiler treats the first line as a preprocessor directive, so it ignores the second line.

I initially misread/mistook the first line for a shebang.



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

Search: