Subject: bug#76521: 31.0.50; TRAMP couldn't find `ls' on OpenBSD

From: Manuel Giraud <[email-masked]>
Date: Mon, 24 Feb 2025 20:09:19 +0100

Michael Albinus <[email-masked]> writes:

> Manuel Giraud <[email-masked]> writes:
>
>>>> 15:26:53.972145 tramp-send-command (6) #
>>>> PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
>>>> type -P readlink 2>/dev/null
>>>> 15:26:53.973329 tramp-wait-for-regexp (6) #
>>>> ///dd2d77bb0b39480e03427f29d539c6cd#$
>>>
>>> Strange. No output.
>>>
>>> What happens, if you call in a shell
>>>
>>> PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin type -P readlink
>>
>> I get the following error:
>>
>> /bin/ksh: type: -P: unknown option
>
> Nothing else? And what happens with

No nothing else.  FWIW the following seems to work as expected both bash
and ksh:

$ PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin command -pv readlink
/usr/bin/readlink

> # PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin type readlink

This prints:
readlink is /usr/bin/readlink
-- 
Manuel Giraud