Function: eshell-copy-output-handle
eshell-copy-output-handle is a byte-compiled function defined in
esh-io.el.gz.
Signature
(eshell-copy-output-handle INDEX INDEX-TO-COPY &optional HANDLES)
Documentation
Copy the handle INDEX-TO-COPY to INDEX for the current HANDLES.
If HANDLES is nil, use eshell-current-handles.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(defun eshell-copy-output-handle (index index-to-copy &optional handles)
"Copy the handle INDEX-TO-COPY to INDEX for the current HANDLES.
If HANDLES is nil, use `eshell-current-handles'."
(let* ((handles (or handles eshell-current-handles))
(handle-to-copy (car (aref handles index-to-copy))))
(when handle-to-copy
(incf (cdr handle-to-copy)))
(eshell-close-handle (aref handles index) nil)
(setcar (aref handles index) handle-to-copy)))