Function: vc-bzr-command-discarding-stderr

vc-bzr-command-discarding-stderr is a byte-compiled function defined in vc-bzr.el.gz.

Signature

(vc-bzr-command-discarding-stderr COMMAND &rest ARGS)

Documentation

Execute shell command COMMAND (with ARGS); return its output and exitcode.

Return value is a cons (EXITCODE . OUTPUT), where EXITCODE is the (numerical) exit code of the process, and OUTPUT is a string containing whatever the process sent to its standard output stream. Standard error output is discarded.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-bzr.el.gz
(defun vc-bzr-command-discarding-stderr (command &rest args)
  "Execute shell command COMMAND (with ARGS); return its output and exitcode.
Return value is a cons (EXITCODE . OUTPUT), where EXITCODE is
the (numerical) exit code of the process, and OUTPUT is a string
containing whatever the process sent to its standard output
stream.  Standard error output is discarded."
  (with-temp-buffer
    (cons
     (apply #'process-file command nil (list (current-buffer) nil) nil args)
     (buffer-substring (point-min) (point-max)))))