Purpose: Create a Clojure script that runs as -mainwhen running ./script.clj.
The closest I got
#!/bin/bash
exec clj -m `basename $0 .clj` ${1+"$@"}
exit
(defn -main [args]
(println args))
But Clojure does not allow non-Lisp code inside multline comments, and Clojure does not have Common Lisps syntax #| ... |#.
source
share