From: Mark Wooding Date: Fri, 10 Jul 2020 19:33:33 +0000 (+0100) Subject: dot/lisp-init.lisp: Explain why the shebang support is there. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/0712ae953c9acc1280d4d73cb8d119b230a68c95 dot/lisp-init.lisp: Explain why the shebang support is there. I nearly deleted it thinking it was useless and then realized what its actual purpose was. --- diff --git a/dot/lisp-init.lisp b/dot/lisp-init.lisp index 6df03e8..2d8bb9e 100644 --- a/dot/lisp-init.lisp +++ b/dot/lisp-init.lisp @@ -87,7 +87,10 @@ (push (lambda () (readline:write-history *history-file*)) custom:*fini-hooks*)) -;; Shebang. +;; Don't choke on shebang lines. This isn't here so that we can run Lisp +;; scripts like proper Unix programs: `cl-launch' or `runlisp' do that. It's +;; here so that we can `load' a script into a running Lisp without it choking +;; on the shebang. (set-dispatch-macro-character #\# #\! (lambda (stream char arg)