I am trying to create a "system" command for clisp that works like this
(setq result (system "pwd")) ;;now result is equal to /my/path/here
I have something like this:
(defun system (cmd) (ext:run-program :output :stream))
But I'm not sure how to convert a stream to a string. I looked at the hyperscript and Google more than a few times.
edit: working with the Ranier team and using with-output-to-stream,
(defun system (cmd) (with-output-to-string (stream) (ext:run-program cmd :output stream)))
And then try to run grep , which is in my path ...
[11]> (system "grep") *** - STRING: argument
source share