mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
* lisp/net/tramp-sh.el (tramp-find-executable): Fix check.
This commit is contained in:
parent
f0d58d976a
commit
e682fd2d5b
|
|
@ -4107,8 +4107,9 @@ This function expects to be in the right *tramp* buffer."
|
||||||
vec (format "%s type -P %s 2>%s"
|
vec (format "%s type -P %s 2>%s"
|
||||||
(if dirlist (concat "PATH=" (string-join dirlist ":")) "")
|
(if dirlist (concat "PATH=" (string-join dirlist ":")) "")
|
||||||
progname (tramp-get-remote-null-device vec)))
|
progname (tramp-get-remote-null-device vec)))
|
||||||
(unless (zerop (buffer-size))
|
(goto-char (point-min))
|
||||||
(string-trim (buffer-string)))))
|
(when (search-forward-regexp "/" nil 'noerror)
|
||||||
|
(string-trim (buffer-substring (match-beginning 0) (point-max))))))
|
||||||
|
|
||||||
;; On hydra.nixos.org, the $PATH environment variable is too long to
|
;; On hydra.nixos.org, the $PATH environment variable is too long to
|
||||||
;; send it. This is likely not due to PATH_MAX, but PIPE_BUF. We
|
;; send it. This is likely not due to PATH_MAX, but PIPE_BUF. We
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue