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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user