1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix bug in `tramp-find-executable'

* lisp/net/tramp-sh.el (tramp-find-executable): Use "command -v",
preserving non-standard PATH search.  Bug#78633)
This commit is contained in:
Michael Albinus 2025-05-30 12:28:15 +02:00
parent f0bec20ac5
commit 30c2ef6d6a

View file

@ -4124,7 +4124,7 @@ This function expects to be in the right *tramp* buffer."
(setq newdl (cons d newdl))))
(setq dirlist (nreverse newdl))))
(when (tramp-send-command-and-check
vec (format "(unalias %s; %s command -pv %s)"
vec (format "(unalias %s; %s command -v %s)"
progname
(if dirlist (concat "PATH=" (string-join dirlist ":")) "")
progname))