Variable: eshell-cp-interactive-query
eshell-cp-interactive-query is a customizable variable defined in
em-unix.el.gz.
Value
root
Documentation
When cp should query before overwriting anything.
If t, always query. If nil, never query. If root, query when
the user is logged in as root (including when default-directory
is remote with a root user).
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-unix.el.gz
(defcustom eshell-cp-interactive-query 'root
"When `cp' should query before overwriting anything.
If t, always query. If nil, never query. If `root', query when
the user is logged in as root (including when `default-directory'
is remote with a root user)."
:type 'eshell-interactive-query
:group 'eshell-unix)