Function: cider--shell-command-to-string

cider--shell-command-to-string is a byte-compiled function defined in cider-endpoint.el.

Signature

(cider--shell-command-to-string COMMAND)

Documentation

Run shell COMMAND via process-file-shell-command and return its output.

Unlike shell-command-to-string, this respects default-directory, so it executes on the remote host when called from a TRAMP buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-endpoint.el
;;; Running nREPL discovery

(defun cider--shell-command-to-string (command)
  "Run shell COMMAND via `process-file-shell-command' and return its output.
Unlike `shell-command-to-string', this respects `default-directory', so
it executes on the remote host when called from a TRAMP buffer."
  (with-temp-buffer
    (process-file-shell-command command nil t)
    (buffer-string)))