]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug in `tramp-find-executable'
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 30 May 2025 10:28:15 +0000 (12:28 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 19:53:39 +0000 (21:53 +0200)
* lisp/net/tramp-sh.el (tramp-find-executable): Use "command -v",
preserving non-standard PATH search.  Bug#78633)

(cherry picked from commit 30c2ef6d6ab73b913ee5c4da7b6cfc26477f5faa)

lisp/net/tramp-sh.el

index 1af038735485e01063f6010e1acc528a0e081e76..5952e013e73cd600cd33589196ea023b875755aa 100644 (file)
@@ -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))