Executing a shell command from Common Lisp

后端 未结 8 1672
耶瑟儿~
耶瑟儿~ 2020-12-14 01:53

How can i execute a shell (bash) command within a Common Lisp program and assign the output to a variable?

8条回答
  •  鱼传尺愫
    2020-12-14 02:09

    Nowadays I would use uiop:run-program, where uiop stands for "universal input output" and is a compatibility layer provided by asdf3, formerly known as asdf/driver. As has been said asdf:run-shell-command is obsolete and uiop inherits many features of other libraries such as trivial-shell.

    UIOP readme

提交回复
热议问题