From: Michael Albinus Date: Fri, 30 May 2025 10:28:15 +0000 (+0200) Subject: Fix bug in `tramp-find-executable' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a531572c2a80467464e8611f4755a460a1be3d23;p=emacs.git Fix bug in `tramp-find-executable' * lisp/net/tramp-sh.el (tramp-find-executable): Use "command -v", preserving non-standard PATH search. Bug#78633) (cherry picked from commit 30c2ef6d6ab73b913ee5c4da7b6cfc26477f5faa) --- diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 1af03873548..5952e013e73 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -4131,7 +4131,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))