【发布时间】:2011-06-28 04:57:42
【问题描述】:
我想在 Emacs 中运行一个 shell 命令并将完整的输出捕获到一个变量中。有没有办法做到这一点?例如,我希望能够通过以下方式将hello-string 设置为"hello":
(setq hello-string (capture-stdout-of-shell-command "/bin/echo hello"))
函数capture-stdout-of-shell-command是否存在,如果存在,它的真实名称是什么?
【问题讨论】:
标签: emacs elisp stdout capture