Test if quicklisp has already been installed in clisp

I'm working on a project in Common Lisp which makes use of a package installed with quickload. I'm making a bash script in the root of the project which tests if the necessary programs are installed, and if it all checks out, it runs a lisp script which loads my project. I want some way of testing if quicklisp is installed, so that I can have it can ask the user for permission to download and install quicklisp automatically. Is there a way to test for this? Quicklisp is installed within clisp, not as a package on the OS, so using the bash builtins for testing if a program's installed won't work.

Answers


From inside Lisp: Quicklisp puts :quicklisp onto the cl:*features* list. If Quicklisp is already loaded into Lisp, then this symbol is on the *features* list.

To test that:

(member :quicklisp *features*)

In Lisp code you can also use the conditional reader:

#+quicklisp (print "quicklisp installed")

or

#-quicklisp (print "quicklisp not installed")

Need Your Help

dynamically-generated submit buttons, which one was clicked?

php html submit

Let's assume a page has a bunch of submit buttons that are generated by a PHP loop of some kind. They are named after the loop value, so the result would look something like this:

Angular Material: md-button ~ hoot change the text of the button based on input on NodeRed

javascript angular-material node-red

in NodeRed, I use the newish UI_Dashboard Template node, which use normal Angular Material notation for buttons etc, I have the following doing a working button: