Function: eshell-rewrite-external-pipeline
eshell-rewrite-external-pipeline is a byte-compiled function defined
in em-extpipe.el.gz.
Signature
(eshell-rewrite-external-pipeline TERMS)
Documentation
Rewrite an external pipeline in TERMS as parsed by
eshell-parse-external-pipeline, which see.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-extpipe.el.gz
(defun eshell-rewrite-external-pipeline (terms)
"Rewrite an external pipeline in TERMS as parsed by
`eshell-parse-external-pipeline', which see."
(while terms
(when (and (listp (car terms))
(eq (caar terms) 'eshell-external-pipeline))
(with-connection-local-variables
(setcdr terms (cl-list*
shell-command-switch (cadar terms) (cdr terms)))
(setcar terms shell-file-name)))
(setq terms (cdr terms))))