From 30c2ef6d6ab73b913ee5c4da7b6cfc26477f5faa Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 30 May 2025 12:28:15 +0200 Subject: [PATCH] Fix bug in `tramp-find-executable' * lisp/net/tramp-sh.el (tramp-find-executable): Use "command -v", preserving non-standard PATH search. Bug#78633) --- lisp/net/tramp-sh.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 64ad3d4996e..eb446f4e2cd 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -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))