Function: tramp-sshfs-handle-exec-path
tramp-sshfs-handle-exec-path is a byte-compiled function defined in
tramp-sshfs.el.gz.
Signature
(tramp-sshfs-handle-exec-path)
Documentation
Like exec-path(var)/exec-path(fun) for Tramp files.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-sshfs.el.gz
(defun tramp-sshfs-handle-exec-path ()
"Like `exec-path' for Tramp files."
(append
(with-parsed-tramp-file-name default-directory nil
(with-tramp-connection-property (tramp-get-process v) "remote-path"
(with-temp-buffer
(let (process-file-side-effects)
(process-file "getconf" nil t nil "PATH"))
(split-string
(progn
;; Read the expression.
(goto-char (point-min))
(buffer-substring (point) (line-end-position)))
":" 'omit))))
;; The equivalent to `exec-directory'.
`(,(tramp-file-local-name (expand-file-name default-directory)))))