← Back to the shelf
Appearance

Dispatches / a short note

concept

Demystifying the (shebang)

They look weird, preprocessors?

To specify an interpreter in the first line of a text file - so that the file need not have an extension. You could run ./script directly - be it shell, python or emacs command.

Demystifying the (Shebang): Kernel Adventures: https://crocidb.com/post/kernel-adventures/demystifying-the-shebang/

discussions: https://news.ycombinator.com/item?id=43646698

Also check (highly related): Kernel module to handle custom file extension.