[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp and executable-find
From: |
Michael Albinus |
Subject: |
Re: tramp and executable-find |
Date: |
Sat, 20 Jun 2020 21:14:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
yyoncho <yyoncho@gmail.com> writes:
> Here it is an example:
>
> Copy ls from /bin/ and name it lss.
>
> Then:
>
> ;; works
> (let ((default-directory "<remote-path>"))
> (executable-find "lss" 'remote))
>
> ;; does not work
> (let ((default-directory "<remote-path>"))
> (executable-find "/bin/lss" 'remote))
But this second example doesn't make sense. You want to know the path,
where the executable "lss" is located. Why do you want to give an
absolute file name as argument?
The docstring of executable-find says "Search for COMMAND in ‘exec-path’".
A command is a command, and not an absolute file name.
*If* you want to use an absolute file name, you would need to give it
also to the command, like
(let ((default-directory "<remote-path>"))
(executable-find "<remote identification>/bin/lss" 'remote))
where <remote identification> is something like /ssh:user@host: - you
see that this doesn't make sense. Search for "lss", that's it, as you
have shown with your first example.
> Thanks,
> Ivan
Best regards, Michael.
- tramp and executable-find, Ivan Yonchovski, 2020/06/20
- Re: tramp and executable-find, Michael Albinus, 2020/06/20
- Re: tramp and executable-find, Philipp Stephani, 2020/06/20
- Re: tramp and executable-find, yyoncho, 2020/06/20
- Re: tramp and executable-find, Michael Albinus, 2020/06/20
- Re: tramp and executable-find, yyoncho, 2020/06/20
- Re: tramp and executable-find, yyoncho, 2020/06/20
- Re: tramp and executable-find,
Michael Albinus <=
- Re: tramp and executable-find, yyoncho, 2020/06/20
- Re: tramp and executable-find, Michael Albinus, 2020/06/21
- Re: tramp and executable-find, yyoncho, 2020/06/21
- Re: tramp and executable-find, Michael Albinus, 2020/06/21