Function: eshell-needs-pipe-p

eshell-needs-pipe-p is a byte-compiled function defined in esh-proc.el.gz.

Signature

(eshell-needs-pipe-p COMMAND)

Documentation

Return non-nil if COMMAND needs process-connection-type to be nil.

See eshell-needs-pipe.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
(defun eshell-needs-pipe-p (command)
  "Return non-nil if COMMAND needs `process-connection-type' to be nil.
See `eshell-needs-pipe'."
  (and (bound-and-true-p eshell-in-pipeline-p)
       (not (eq eshell-in-pipeline-p 'first))
       ;; FIXME should this return non-nil for anything that is
       ;; neither 'first nor 'last?  See bug#1388 discussion.
       (catch 'found
	 (dolist (exe eshell-needs-pipe)
	   (if (string-equal exe (if (string-search "/" exe)
				     command
				   (file-name-nondirectory command)))
	       (throw 'found t))))))