3 ms·
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 th
by ckastner 1y ago
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.