Function: eshell-interactive-query-p
eshell-interactive-query-p is a byte-compiled function defined in
em-unix.el.gz.
Signature
(eshell-interactive-query-p VALUE)
Documentation
Return non-nil if a command should query the user according to VALUE.
If VALUE is nil, return nil (never query). If root, return
non-nil if the user is logged in as root (including when
default-directory is remote with a root user; see
file-user-uid). If VALUE is any other non-nil value, return
non-nil (always query).
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-unix.el.gz
(defun eshell-interactive-query-p (value)
"Return non-nil if a command should query the user according to VALUE.
If VALUE is nil, return nil (never query). If `root', return
non-nil if the user is logged in as root (including when
`default-directory' is remote with a root user; see
`file-user-uid'). If VALUE is any other non-nil value, return
non-nil (always query)."
(if (eq value 'root)
(= (file-user-uid) 0)
value))