bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change


From: Michael Albinus
Subject: bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil
Date: Wed, 11 Jan 2023 10:35:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Ruijie Yu <ruijie@netyu.xyz> writes:

Hi,

>> Attached is a patch to do this. It adds a new function, 'user-uid-for-file',
>> which is aware of file name handlers. Then, Tramp adds the appropriate
>> handler. Now, Eshell can use that function and we get the prompt sigil we
>> expect.
>
> Haven't looked into the patch, but I wonder if it addresses multi-hop
> scenarios like the following:
>
> 1. /sudo:admin@localhost|sudo::
> 2. /sudo:|sudo:another_user@localhost::
> 3. /sshx:admin@remote|sudo::
> 4. /sudo:|sshx:admin@remote::
> 5. /doas::
> 6. /sshx:root@localhost:

Tramp handles these cases.

> Best,
>
> RY

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]