Function: eshell-copy-handles
eshell-copy-handles is a macro defined in esh-cmd.el.gz.
Signature
(eshell-copy-handles OBJECT)
Documentation
Duplicate current I/O handles, so OBJECT works with its own copy.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defvar eshell-error-handle) ;Defined in esh-io.el.
(defmacro eshell-copy-handles (object)
"Duplicate current I/O handles, so OBJECT works with its own copy."
`(let ((eshell-current-handles
(eshell-create-handles
(car (aref eshell-current-handles
eshell-output-handle)) nil
(car (aref eshell-current-handles
eshell-error-handle)) nil)))
,object))