Does there exist standard way to run external program in Common Lisp?

前端 未结 6 1662
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-11 15:07

In clisp, the following code works:

(defun hit-history () (shell \"tail ssqHitNum.txt\"))

However, in Clozure CL, the shell fu

6条回答
  •  旧时难觅i
    2021-01-11 15:42

    Have a look at the inferior-shell package.

    (Get it via the almighty quicklisp package manager.)

    This works in the interpreter, if you have internet:

    (require 'inferior-shell)
    (inferior-shell:run/s '(curl icanhazip.com))
    

提交回复
热议问题