X-Git-Url: https://git.distorted.org.uk/~mdw/lisp/blobdiff_plain/e5152ebe572654951e849ba89d2c8ba4d4223e80..b2c12b4eaf6e5c43791d95080a243c35f97ee488:/sys-base.lisp diff --git a/sys-base.lisp b/sys-base.lisp index ede099a..ef71916 100644 --- a/sys-base.lisp +++ b/sys-base.lisp @@ -13,12 +13,12 @@ ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 2 of the License, or ;;; (at your option) any later version. -;;; +;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. -;;; +;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software Foundation, ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -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)