Function: eshell-silence-test-command

eshell-silence-test-command is a byte-compiled function defined in esh-cmd.el.gz.

Signature

(eshell-silence-test-command TERMS)

Documentation

If TERMS is a subcommand, wrap it in eshell-commands to silence output.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-silence-test-command (terms)
  "If TERMS is a subcommand, wrap it in `eshell-commands' to silence output."
  (if (memq (car-safe terms) '(eshell-as-subcommand eshell-lisp-command))
      `(eshell-command-success (eshell-commands ,terms t))
    terms))