Function: eshell-command-to-value

eshell-command-to-value is a macro defined in esh-cmd.el.gz.

Signature

(eshell-command-to-value COMMAND)

Documentation

Run an Eshell COMMAND synchronously, returning its output.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defmacro eshell-command-to-value (command)
  "Run an Eshell COMMAND synchronously, returning its output."
  (let ((value (make-symbol "eshell-temp")))
    `(eshell-with-handles (',value 'overwrite)
       (let ((eshell-in-pipeline-p nil))
         ,command
         ,value))))