[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.1.14); TRAMP hangs with sudo and su method after querying m
From: |
Michael Albinus |
Subject: |
Re: tramp (2.1.14); TRAMP hangs with sudo and su method after querying my password |
Date: |
Fri, 22 Aug 2008 17:00:24 +0200 |
User-agent: |
Gnus/5.101 (Gnus v5.10.10) Emacs/21.3 (hpux) |
Tassilo Horn <address@hidden> writes:
>
> Hi Michael,
Hi Tassilo,
>> However, it wouldn't help in the given case, because Tramp failed
>> already recognizing the prompt after applying the "sudo"
>> command. Setting $INSIDE_EMACS will happen later.
>
> Really? shell-mode has to recognize the prompt as well, uses the same
> regexp and it works there.
Local processes of Emacs inherit the settings of
`process-environment'. One could set environment variables there,
*before* starting the local process. So does `comint-exec-1'.
For Tramp, `process-environment' is not set on the remote host. Tramp
performs "sudo", and *after* getting the interactive shell on the
remote side, it can start setting environment variables, taken from
`tramp-remote-process-environment'.
In your case, passing the *initial* prompt failed already.
> Anyway, we'll see when it's implemented.
I'll try to commit tonight.
> Bye,
> Tassilo
Best regards, Michael.