From a08142379f65d760e71653974e669320a6867929 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 24 May 2006 18:50:26 +0100 Subject: [PATCH] sys-base: Portability fixes again. * Make sure *command-line-strings* is bound to something sane, even if runlisp isn't doing its thing. * As a result, use *lisp-interpreter* to decide whether runlisp is actually present. --- sys-base.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-base.lisp b/sys-base.lisp index ede099a..83f06f2 100644 --- a/sys-base.lisp +++ b/sys-base.lisp @@ -26,6 +26,7 @@ (defpackage #:runlisp (:use #:common-lisp) (:export #:*lisp-interpreter* #:*command-line-strings* #:run)) +(defvar runlisp:*command-line-strings* '("")) (defpackage #:mdw.sys-base (:use #:common-lisp #:runlisp) @@ -45,7 +46,7 @@ (defun exit (&optional (code 0)) "Polite way to end a program. If running in an interactive Lisp, just return to the top-level REPL." - (if (boundp '*command-line-strings*) + (if (boundp '*lisp-interpreter*) #+(or cmu ecl) (ext:quit code) (progn (unless (zerop code) -- 2.11.0