Function: projection--shell-command-to-string
projection--shell-command-to-string is a natively compiled function
defined in projection-utils.el.
Signature
(projection--shell-command-to-string COMMAND)
Documentation
Run COMMAND in a subshell and return the standard output.
Source Code
;; Defined in /nix/store/j6y921qbdmdqxjnd43iibapbig3p4hai-emacs-packages-deps/share/emacs/site-lisp/elpa/projection-20260614.1822/projection-utils.el
(defun projection--shell-command-to-string (command)
"Run COMMAND in a subshell and return the standard output."
(projection--log :debug "Running shell command='%s'" command)
(cl-destructuring-bind (stdout . stderr)
(projection--shell-command-to-string-1 command)
(cl-loop
for (label . output) in `(("stdout" . ,stdout)
("stderr" . ,stderr))
do (if (string-empty-p output)
(projection--log
:debug "Shell command='%s' produced no %s output" command label)
(projection--log
:debug "%s for shell command='%s' was\n%s" label command output)))
(unless (string-empty-p stdout)
stdout)))