This patch allows SBCL to be used as a unix-style script "interpreter",
by adding an option --load-script, which is like --noinform
--end-runtime-options --load <filename> --end-toplevel-options except
that it skips over the first line of the loaded file, which must be
Thanks to nyef of #lisp for the idea.
* This does not allow for running without sysinit/userinit files, or
anything else that requires additional runtime or toplevel options,
unless your OS supports multiple arguments on the #! line.
* If the script does not (QUIT), sbcl will continue to the REPL, just
as with --load. I decided not to add an implicit (QUIT) as there would
then need to be a way to request *not* quitting.
* Support for skipping the #! line in a loaded file has been added
only minimally -- in particular, a compiled file may not be used as a
* I have not checked that the documentation additions are correctly