Do note that in current
asdf the run-shell-command function is commented to not really fit in asdf package and might possibly be removed in a few years. It is best to use another compatibility system, although I am not sure if a good one exists, or external program facility specific to implementation (
SBCL manual).
That said, as the docstring says, the output of the program is directed to *verbose-out*, and you can capture it using standard special variable stream techniques, for example:
Code: Select all
(with-output-to-string (asdf::*verbose-out*) (asdf:run-shell-command "ls"))
This will also capture the command itself. As mentioned, using this for purposes other than possibly calling an external compiler during asdf compilation process is not really recommended.