You cannot use coffee
as a script interpreter directly, because it already has a script. But you can fix this by writing a simple C shell:
#include <unistd.h> int main(int argc, char *argv[]) { execvp("coffee", argv); }
Compile this and put it in your PATH somewhere (I called it klatsh
) and then put #!/usr/bin/env klatsh
(or whatever you called it) at the top of your scripts, and you're good to go.
source share