How can i execute a shell (bash) command within a Common Lisp program and assign the output to a variable?
Some CL implementations have built-in functions for this purpose. For example, SBCL has sb-ext:run-program, and CCL has run-program.
sb-ext:run-program
run-program