Up: Steel Bank Common Lisp   [Contents][Index]


1.2.1 Running and Stopping SBCL

To run SBCL type ‘sbcl’ at the command line. You should end up in the toplevel REPL (read, eval, print -loop), where you can interact with SBCL by typing expressions.

▶ which sbcl
/opt/local/bin/sbcl

▶ sbcl
This is SBCL 2.0.7, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* 

SBCL can be stopped at any time by calling sb-ext:exit, optionally returning a specified numeric value to the calling process.

By default SBCL also exits on end of input, caused either by user pressing ‘Control-D’ on an attached terminal, or end of input when using SBCL as part of a shell pipeline.