3 ms·
Sometimes it's useful to do something like: /*usr/bin/env echo 'Hello World!' #*/ Even if, for some reason, there are multiple `usr` folders, the use of `en
by o11c 2y ago
Sometimes it's useful to do something like:
/*usr/bin/env echo 'Hello World!' #*/
Even if, for some reason, there are multiple `usr` folders, the use of `env` means it will eventually call the executable.
As for getting rid of the shebang - swapping the ! with a / means that the line and character counts don't change so you get meaningful error messages.
- dorianmariefr 2y agowhat kind of sorcery is this :D
- rramadass 2y agoAh; the /* at the beginning is expanded by the shell to a proper path while the trailing #*/ becomes a shell comment.