GNU bug report logs -
#64546
30.0.50; [PATCH] Add support for explicitly-remote commands in Eshell
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Sun, 9 Jul 2023 19:32:01 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 64546 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 7/10/2023 12:24 AM, Michael Albinus wrote:
> Jim Porter <jporterbugs <at> gmail.com> writes:
>> This patch adds the ability to run a command in Eshell from any host,
>> no matter your current directory. For example, you could run
>> "/ssh:user <at> remote:whoami" from a local dir, which would run "whoami"
>> over the SSH connection for "user <at> remote".
>
> Looks nice. But what if I want to run a command on another remote host
> with an absolute path? Would "/ssh:user <at> remote:/usr/bin/whoami" also be
> possible?
Yes, the local part should let you type any command name that would work
if you were in the home directory[1] for that connection. I'll also add
a note about that to the manual (and a regression test).
> The same question. What about calling "/:/usr/bin/whoami"?
Ditto.
>> +By default, commands like @code{ssh} and @code{sudo} use the external
>> +programs by those names, so if you ran @samp{ssh
>> +@var{user}@@@var{remote}}, you would end up in the default shell
>> +program for @var{user} on @var{remote}, @emph{not} in Eshell. If you
>> +prefer to use commands like @code{ssh} but remain in Eshell
>> +afterwards, you can enable the optional Tramp extensions (@pxref{Tramp
>> +extensions}).
>
> This surprises me. I thought, that only "doas", "su" and "sudo" are built-ins.
Oops! Somehow, I got it into my head that we had an 'eshell/ssh'
builtin, but that's not the case. I'll just remove this paragraph.
[1] Well, whatever the default directory is if you ran "cd
/method:user <at> host:", anyway. Personally, I'd avoid trying to use
relative paths though; I think that's a bit confusing.
[0001-Add-documentation-about-remote-access-in-Eshell.patch (text/plain, attachment)]
[0002-Add-support-for-explicitly-remote-commands-in-Eshell.patch (text/plain, attachment)]
This bug report was last modified 1 year and 315 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.