Function: eshell-apply
eshell-apply is a byte-compiled function defined in esh-cmd.el.gz.
Signature
(eshell-apply FUNC ARGS)
Documentation
Call FUNC, with ARGS, trapping errors and return them as output.
Print the result using eshell-print; if an error occurs, print
it via eshell-error.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defsubst eshell-apply (func args)
"Call FUNC, with ARGS, trapping errors and return them as output.
Print the result using `eshell-print'; if an error occurs, print
it via `eshell-error'."
(eshell-apply* #'eshell-print #'eshell-error func args))