Subject: 31.0.50; tramp-find-executable ignores argument dirlist
From: Xinyang Chen <[email-masked]>
To: [email-masked]
Date: Thu, 29 May 2025 13:43:28 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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

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.

Alan