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))))
(setcar (aref handles index)
(if (listp handle-to-copy)
(copy-sequence handle-to-copy)
handle-to-copy))))