X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftoplevel.lisp;h=87a47526f89c2e2072cacf7f378066c3caa65ce8;hb=024389e7e3db268f535e36d883b4efc9d7ea0f65;hp=607113183f93100c75a3c2ce301e196bb4ee0974;hpb=db97ea04895820f70c90bdeb0399aa0229410b5d;p=sbcl.git diff --git a/src/code/toplevel.lisp b/src/code/toplevel.lisp index 6071131..87a4752 100644 --- a/src/code/toplevel.lisp +++ b/src/code/toplevel.lisp @@ -398,14 +398,12 @@ command-line.") t)) (defun process-script (script) - (let ((pathname (native-pathname script)) - (ok nil)) - (unwind-protect - (with-open-file (f pathname :element-type :default) - (maybe-skip-shebang-line f) - (load f :verbose nil :print nil) - (setf ok t)) - (quit :unix-status (if ok 0 1))))) + (let ((pathname (native-pathname script))) + (handling-end-of-the-world + (with-open-file (f pathname :element-type :default) + (maybe-skip-shebang-line f) + (load f :verbose nil :print nil) + (quit))))) ;; Errors while processing the command line cause the system to QUIT, ;; instead of trying to go into the Lisp debugger, because trying to