Subject: Re: bug#78633: 31.0.50; tramp-find-executable ignores argument dirlist
From: Michael Albinus <[email-masked]>
To: Xinyang Chen <[email-masked]>
Cc: [email-masked]
Date: Fri, 30 May 2025 12:36:43 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 31.1

Xinyang Chen <[email-masked]> writes:

Hi,

> Tramp is not finding `ls` from a non-standard path added to
> `tramp-remote-path`.

Thanks for the bug report!

> On further inspection `tramp-find-executable` is using `command -pv`
> which only uses a pre-defined PATH and not the PATH env variable. I
> think `command -v` should be used instead.

Indeed. I've fixed this in master, closing the bug.

> Alan

Best regards, Michael.